Exceptions¶
glpi_utils.exceptions.GlpiError
¶
glpi_utils.exceptions.GlpiAPIError
¶
Bases: GlpiError
Raised when the GLPI server returns an API-level error response.
Attributes:
| Name | Type | Description |
|---|---|---|
status_code |
int or None
|
HTTP status code returned by the server. |
error_code |
str or None
|
GLPI error identifier (e.g. |
message |
str
|
Human-readable error message. |
Source code in glpi_utils/exceptions.py
glpi_utils.exceptions.GlpiAuthError
¶
Bases: GlpiAPIError
Raised on authentication failures (HTTP 401 or invalid session token).
Source code in glpi_utils/exceptions.py
glpi_utils.exceptions.GlpiNotFoundError
¶
Bases: GlpiAPIError
Raised when the requested resource does not exist (HTTP 404).
Source code in glpi_utils/exceptions.py
glpi_utils.exceptions.GlpiPermissionError
¶
Bases: GlpiAPIError
Raised when the authenticated user lacks the required rights (HTTP 403).