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
Common base class for all non-exit exceptions.
Common base class for all non-exit exceptions.
Common base class for all non-exit exceptions.
Common base class for all non-exit exceptions.
Common base class for all non-exit exceptions.
Common base class for all non-exit exceptions.
Common base class for all non-exit exceptions.