(self)
| 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 | |
| 42 | class NotFoundException(DomainException): |
no test coverage detected