deepint.error

class deepint.error.DeepintBaseError(code: str, message: str)

Generic exception for package.

code

error’s id in text format. Can be obtained from deepint.net API when a request is errored, or generated by this package when a comprobation error occurs.

message

error’s description. As well as the code can be generated by this package in comprobations or can be obtained from deepint.net API.

Parameters:
  • code – error’s id in text format. Can be obtained from deepint.net API when a request is errored, or generated by this package when a comprobation error occurs.

  • message – error’s description. As well as the code can be generated by this package in comprobations or can be obtained from deepint.net API.

class deepint.error.DeepintHTTPError(code: str, message: str, method: str, url: str)

Exception used on HTTP error response by deepint.net API.

Parameters:
  • code – error code provided by deepint.net API.

  • message – messaged code provided by deepint.net API.

  • url – resource that was being operated on when the error occurred.

  • method – HTTP method performed on the request that originated the error.

class deepint.error.DeepintCredentialsError

Exception thrown when in the building process of a deepint_sdk.credentials.Credentials a token is not found.

class deepint.error.DeepintTaskError(task: str, name: str, code: str, message: str)

Exception raised when in the deepint_sdk.core.Task.resolve method, the task fails.

Parameters:
  • task – id of the failed task.

  • name – name of the failed task.

  • code – error code provided by deepint.net API.

  • message – messaged code provided by deepint.net API.