MCPcopy
hub / github.com/pydantic/pydantic / MyError

Class MyError

pydantic-core/tests/validators/test_function.py:548–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546@pytest.mark.parametrize('base_error', [ValueError, AssertionError])
547def test_error_with_error(base_error: type[Exception]):
548 class MyError(base_error):
549 def __str__(self):
550 raise RuntimeError('internal error')
551
552 def f(input_value, info):
553 raise MyError()

Callers 1

fFunction · 0.85

Calls

no outgoing calls

Tested by 1

fFunction · 0.68