Skip to content

Exceptions

hypha.apply.projects.services.sageintacct.exceptions

SageIntacctSDKError

SageIntacctSDKError(msg, response=None)

Bases: Exception

The base exception class for SageIntacctSDK.

Parameters:

  • msg (str) –

    Short description of the error.

  • response –

    Error response from the API call.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKError, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

SageIntacctSDKWarning

SageIntacctSDKWarning(msg, response=None)

Bases: Warning

The base Warning class for SageIntacctSDK.

Parameters:

  • msg (str) –

    Short description of the alert.

  • response –

    Error response from the API call.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKWarning, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

ExpiredTokenError

ExpiredTokenError(msg, response=None)

Bases: SageIntacctSDKError

Expired (old) access token, 498 error.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKError, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

InvalidTokenError

InvalidTokenError(msg, response=None)

Bases: SageIntacctSDKError

Wrong/non-existing access token, 401 error.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKError, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

NoPrivilegeError

NoPrivilegeError(msg, response=None)

Bases: SageIntacctSDKError

The user has insufficient privilege, 403 error.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKError, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

WrongParamsError

WrongParamsError(msg, response=None)

Bases: SageIntacctSDKError

Some of the parameters (HTTP params or request body) are wrong, 400 error.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKError, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

NotFoundItemError

NotFoundItemError(msg, response=None)

Bases: SageIntacctSDKError

Not found the item from URL, 404 error.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKError, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

InternalServerError

InternalServerError(msg, response=None)

Bases: SageIntacctSDKError

The rest SageIntacctSDK errors, 500 error.

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKError, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response

DataIntegrityWarning

DataIntegrityWarning(msg, response=None)

Bases: SageIntacctSDKWarning

Warns the user that a query did not return all records meeting specified criteria

Source code in hypha/apply/projects/services/sageintacct/exceptions.py
def __init__(self, msg, response=None):
    super(SageIntacctSDKWarning, self).__init__(msg)
    self.message = msg
    self.response = response

message instance-attribute

message = msg

response instance-attribute

response = response