__str__() — fastapi Function Reference
Architecture documentation for the __str__() function in exceptions.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 5b458d6f_ef49_5bcd_d6b6_bbc9909a7a58["__str__()"] 32a73308_3432_5041_09d0_0ac7de6c0780["ValidationException"] 5b458d6f_ef49_5bcd_d6b6_bbc9909a7a58 -->|defined in| 32a73308_3432_5041_09d0_0ac7de6c0780 b450d08c_60f4_509a_84c3_0b5d46e7942a["_format_endpoint_context()"] 5b458d6f_ef49_5bcd_d6b6_bbc9909a7a58 -->|calls| b450d08c_60f4_509a_84c3_0b5d46e7942a style 5b458d6f_ef49_5bcd_d6b6_bbc9909a7a58 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fastapi/exceptions.py lines 204–209
def __str__(self) -> str:
message = f"{len(self._errors)} validation error{'s' if len(self._errors) != 1 else ''}:\n"
for err in self._errors:
message += f" {err}\n"
message += self._format_endpoint_context()
return message.rstrip()
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does __str__() do?
__str__() is a function in the fastapi codebase, defined in fastapi/exceptions.py.
Where is __str__() defined?
__str__() is defined in fastapi/exceptions.py at line 204.
What does __str__() call?
__str__() calls 1 function(s): _format_endpoint_context.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free