Method
__init__
(
self,
message: str = "Service is unavailable.",
name: str = "ServiceError",
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
)
Source from the content-addressed store, hash-verified
| 27 | """Failures in external services or APIs, like a database or a third-party service""" |
| 28 | |
| 29 | def __init__( |
| 30 | self, |
| 31 | message: str = "Service is unavailable.", |
| 32 | name: str = "ServiceError", |
| 33 | status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, |
| 34 | ): |
| 35 | super().__init__(message, name, status_code) |
| 36 | |
| 37 | |
| 38 | class InvalidValueError(CogneeApiError): |
Tested by
no test coverage detected