MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / as_dict

Method as_dict

src/core/exception/exceptions.py:30–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 return 422
29
30 def as_dict(self) -> dict[str, Any]:
31 r = {
32 "status": self.code(),
33 "title": self.type(),
34 "detail": self.message,
35 "code": self.errorNo,
36 "source": {"traceback": self.traceback},
37 }
38
39 return r
40
41
42class NotFoundException(DomainException):

Callers 2

exception_handlerFunction · 0.80
log_request_exceptionMethod · 0.80

Calls 2

codeMethod · 0.95
typeMethod · 0.95

Tested by

no test coverage detected