SamsSystemErrors – System Errors

class UnknownError(message: str, exception: Optional[Exception] = None)

Raised when an unknown/unhandled error has occurred

app_code: str = '01001'
description: str = '{message}'
http_code: int = 500
log_exception: bool = True
class AssertionError(message: str, exception: Optional[Exception] = None)

Raised when an assertion has failed in the code

app_code: str = '01002'
description: str = '{message}'
http_code: int = 500
log_exception: bool = True
class SystemUpdateNotAllowed(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when an attempt to force resource update from an API endpoint

app_code: str = '01003'
description: str = '"system_update" not allowed in api endpoints'
http_code: int = 500
log_exception: bool = True
class NotImplemented(message: str, exception: Optional[Exception] = None)

Raised when a required function has not been implemented

app_code: str = '01004'
description: str = '{message}'
http_code: int = 500
log_exception: bool = True