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:

```python
raise PyCelonisError("This is an error in PyCelonis")
```

PyCelonisError

PyCelonisError(message=None)

Bases: Exception

Base Error class.

Parameters:

  • message (Optional[str], default: None ) –

    Error message to display.

message instance-attribute

message = message

PyCelonisHTTPStatusError

PyCelonisHTTPStatusError(message=None)

Bases: PyCelonisError

Raises for HTTPStatusError.

Parameters:

  • message (Optional[str], default: None ) –

    Error message to display.

PyCelonisPermissionError

PyCelonisPermissionError(message=None)

Bases: PyCelonisError

Raises for PermissionError.

Parameters:

  • message (Optional[str], default: None ) –

    Error message to display.

PyCelonisValueError

PyCelonisValueError(message=None)

Bases: PyCelonisError

Raised for ValueErrors.

Parameters:

  • message (Optional[str], default: None ) –

    Error message to display.

PyCelonisAttributeError

PyCelonisAttributeError(message=None)

Bases: PyCelonisError

Raised for AttributeErrors.

Parameters:

  • message (Optional[str], default: None ) –

    Error message to display.

PyCelonisTypeError

PyCelonisTypeError(message=None)

Bases: PyCelonisError

Raised for TypeErrors.

Parameters:

  • message (Optional[str], default: None ) –

    Error message to display.

PyCelonisNotFoundError

PyCelonisNotFoundError(message=None)

Bases: PyCelonisError

Raised when object with given id was not found.

Parameters:

  • message (Optional[str], default: None ) –

    Error message to display.