Exceptions¶
Exception hierarchy. All exceptions raised by lptk inherit from LPTKError,
allowing a single except clause to catch any package-specific error.
- exception lptk.LPTKError¶
Bases:
ExceptionBase exception for all lptk errors.
- Parameters:
- __init__(message, details=None)¶
Store the message and any structured context.
- exception lptk.ConfigurationError¶
Bases:
LPTKErrorRaised when configuration is invalid or missing.
Examples
Missing API token file
Invalid environment variable values
Missing required settings
- exception lptk.APIError¶
Bases:
LPTKErrorBase exception for API-related errors.
- Parameters:
- __init__(message, status_code=None, details=None)¶
Store the HTTP status code alongside the base error fields.