errors.py
PyCelonisDataExportNotEnabledError (PyCelonisError)
¶
Raised when data export not enabled.
Source code in celonis_api/errors.py
class PyCelonisDataExportNotEnabledError(PyCelonisError):
"""Raised when data export not enabled."""
def __init__(self, message: str):
"""Instantiates PyCelonisDataExportNotEnabledError with data export not enabled error message."""
super(PyCelonisDataExportNotEnabledError, self).__init__(
message=f"Data Export not enabled. Please contact Celonis customer support.\n{message}".strip()
)
__init__(self, message)
special
¶
Instantiates PyCelonisDataExportNotEnabledError with data export not enabled error message.
Source code in celonis_api/errors.py
PyCelonisError (Exception)
¶
Base Error class.
Source code in celonis_api/errors.py
class PyCelonisError(Exception):
"""Base Error class."""
def __init__(self, message: typing.Optional[str] = None) -> None:
_tracker = PyCelonisTracker()
if _tracker.enabled:
_tracker.error(message, extra={"tracking_type": "ERROR", "level": "error"})
message = f"{message}\n[Celonis Support ID: {_tracker.support_id}]"
self.message = message
super().__init__(self.message)
PyCelonisHTTPError (PyCelonisError, HTTPError)
¶
Raised when HTTP error occurred.