Utilities

Error Handling

exception fineract.exceptions.BadArgsException(status, data)[source]

Exception raised when a non-existing object is requested (when Fineract API replies with a 400 HTML status)

exception fineract.exceptions.BadCredentialsException(status, data)[source]

Exception raised in case of bad credentials (when Fineract API replies with a 401 or 403 HTML status)

exception fineract.exceptions.FineractException(status, data)[source]

Error handling in PyFineract is done with exceptions. This class is the base of all exceptions raised by PyFineract (but fineract.exceptions.BadAttributeException). Some other types of exceptions might be raised by underlying libraries, for example for network-related issues.

data

The (decoded) data returned by the Fineract API

status

The status returned by the Fineract API

exception fineract.exceptions.ResourceNotFoundException(status, data)[source]

Exception raised when a non-existing object is requested (when Fineract API replies with a 404 HTML status)