bedrock.exceptions.not_found_exception
1from .bedrock_exception import BedrockException 2 3 4class NotFoundException(BedrockException): # pragma: unit 5 """ 6 Throw this exception when the client has requested a non-existing resource (or is not authorised to access it). 7 8 Default HTTP code: 404. 9 """ 10 def __init__(self, message="Resource not found", exception=None): 11 super().__init__(message, exception, error_code=404)
5class NotFoundException(BedrockException): # pragma: unit 6 """ 7 Throw this exception when the client has requested a non-existing resource (or is not authorised to access it). 8 9 Default HTTP code: 404. 10 """ 11 def __init__(self, message="Resource not found", exception=None): 12 super().__init__(message, exception, error_code=404)
Throw this exception when the client has requested a non-existing resource (or is not authorised to access it).
Default HTTP code: 404.