Users Service Errors¶
consortium.server.exceptions.service_exceptions.users_service_exceptions
¶
Exception hierarchy:
UsersServiceError(message='', detail=None)
¶
Bases: BaseServiceError
Base exception for all errors that occur within the users service.
Attributes:
| Name | Type | Description |
|---|---|---|
code |
A stable machine-readable string identifying the specific error. |
|
message |
str
|
A human-readable description of what went wrong and, where possible, how to resolve it. |
detail |
dict[str, JsonValue] | None
|
Optional structured context about the error, or None when there is none. |
code = 'USERS_SERVICE_ERROR'
class-attribute
instance-attribute
¶
UserNotFoundError(message='', detail=None)
¶
Bases: UsersServiceError
Raised when the requested user was not found in the users service.
code = 'USER_NOT_FOUND_ERROR'
class-attribute
instance-attribute
¶
UserIDNotFoundError(user_id)
¶
Bases: UserNotFoundError
Raised when the requested user with the provided user ID was not found in the users service
code = 'USER_ID_NOT_FOUND_ERROR'
class-attribute
instance-attribute
¶
UserAccessTokenNotFoundError(access_token)
¶
Bases: UserNotFoundError
Raised when the requested user with the provided user access token was not found in the users service