Exceptions#
API Exception class.
- exception fma_connect.exceptions.APIException(status_code=None, message=None)#
Bases:
Exception
Base class for REST framework exceptions.
Subclasses should provide .status_code and .default_detail properties.
Initialize APIException.
- Parameters:
status_code (int) – status_code
message (str) – API Code message
- args#
- with_traceback()#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.