librus_apix.exceptions

This module defines custom exception classes used in the Librus API interactions for handling various error scenarios.

Exceptions: - TokenKeyError: Raised when there is an issue with the API token key. - ArgumentError: Raised when an invalid argument is provided to a function. - TokenError: Raised for errors related to API token management. - AuthorizationError: Raised when there is an authorization error during API access. - ParseError: Raised when there is an error parsing data. - DateError: Raised for errors related to date handling. - MaintananceError: Raised when the API is under maintenance.

 1"""
 2This module defines custom exception classes used in the Librus API interactions for handling various error scenarios.
 3
 4Exceptions:
 5    - TokenKeyError: Raised when there is an issue with the API token key.
 6    - ArgumentError: Raised when an invalid argument is provided to a function.
 7    - TokenError: Raised for errors related to API token management.
 8    - AuthorizationError: Raised when there is an authorization error during API access.
 9    - ParseError: Raised when there is an error parsing data.
10    - DateError: Raised for errors related to date handling.
11    - MaintananceError: Raised when the API is under maintenance.
12"""
13
14
15class TokenKeyError(Exception):
16    pass
17
18
19class ArgumentError(Exception):
20    pass
21
22
23class TokenError(Exception):
24    pass
25
26
27class AuthorizationError(Exception):
28    pass
29
30
31class ParseError(Exception):
32    pass
33
34
35class DateError(Exception):
36    pass
37
38
39class MaintananceError(Exception):
40    pass
class TokenKeyError(builtins.Exception):
16class TokenKeyError(Exception):
17    pass

Common base class for all non-exit exceptions.

class ArgumentError(builtins.Exception):
20class ArgumentError(Exception):
21    pass

Common base class for all non-exit exceptions.

class TokenError(builtins.Exception):
24class TokenError(Exception):
25    pass

Common base class for all non-exit exceptions.

class AuthorizationError(builtins.Exception):
28class AuthorizationError(Exception):
29    pass

Common base class for all non-exit exceptions.

class ParseError(builtins.Exception):
32class ParseError(Exception):
33    pass

Common base class for all non-exit exceptions.

class DateError(builtins.Exception):
36class DateError(Exception):
37    pass

Common base class for all non-exit exceptions.

class MaintananceError(builtins.Exception):
40class MaintananceError(Exception):
41    pass

Common base class for all non-exit exceptions.