Exceptions
exceptions
Classes:
-
ActualError–General error with Actual. The error message should provide more information.
-
ActualInvalidOperationError–Invalid operation requested.
-
AuthorizationError–When the login fails due to invalid credentials, or a request has been done with the wrong credentials.
-
UnknownFileId–When the
file_idthat has been set does not exist on the server. -
InvalidZipFile–The validation fails when loading a zip file, either because it's an invalid zip file or the file is corrupted.
-
InvalidFile–The changes being synced are part of an old group, which means the file has been reset.
-
ActualDecryptionError–The decryption for the file failed.
-
ActualOverflowError–The HULC timestamp counter exceeded the maximum value of 0xFFFF (65535).
-
ActualSplitTransactionError–The split transaction is invalid.
-
ActualBankSyncError–The bank sync had an error.
Functions:
ActualError
Bases: Exception
General error with Actual. The error message should provide more information.
ActualInvalidOperationError
Bases: ActualError
Invalid operation requested.
Usually happens when a request has been done, but it's missing one of the required parameters.
AuthorizationError
Bases: ActualError
When the login fails due to invalid credentials, or a request has been done with the wrong credentials.
Potential causes are invalid password or token.
UnknownFileId
Bases: ActualError
When the file_id that has been set does not exist on the server.
InvalidZipFile
Bases: ActualError
The validation fails when loading a zip file, either because it's an invalid zip file or the file is corrupted.
InvalidFile
Bases: ActualError
The changes being synced are part of an old group, which means the file has been reset.
The file needs to be re-downloaded. This error should not happen in normal circumstances.
ActualDecryptionError
Bases: ActualError
The decryption for the file failed.
This can happen for a multitude or reasons, like the password is wrong, the file is corrupted, or when the password is not provided but the file is encrypted.
ActualOverflowError
Bases: ActualError
The HULC timestamp counter exceeded the maximum value of 0xFFFF (65535).
This means too many messages were generated within the same millisecond.
ActualSplitTransactionError
Bases: ActualError
The split transaction is invalid.
Most likely because the sum of splits is not equal to the full amount of the transaction.
ActualBankSyncError
Bases: ActualError
The bank sync had an error.
Could happen due to the service being unavailable or due to authentication issues with the third-party service. This likely indicates a problem with the configuration of the bank sync, not an issue with this library.
Source code in actual/exceptions.py
get_exception_from_response
get_exception_from_response(
response: Response,
) -> Exception