Skip to content

errors

Module for PyCelonis specific error classes.

This module contains all PyCelonis specific error classes used throughout the package.

Typical usage example
raise PyCelonisError("This is an error in PyCelonis")

PyCelonisError

PyCelonisError(message=None)

Bases: Exception

Base Error class.

Parameters:

  • message (typing.Optional[str]) –

    Error message to display.

message instance-attribute

message = message

PyCelonisHTTPStatusError

Bases: PyCelonisError

Raises for HTTPStatusError.

PyCelonisPermissionError

Bases: PyCelonisError

Raises for PermissionError.

PyCelonisValueError

Bases: PyCelonisError

Raised for ValueErrors.

PyCelonisAttributeError

Bases: PyCelonisError

Raised for AttributeErrors.

PyCelonisTypeError

Bases: PyCelonisError

Raised for TypeErrors.

PyCelonisNotFoundError

Bases: PyCelonisError

Raised when object with given id was not found.