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.

message instance-attribute

message = message

PyCelonisPermissionError

PyCelonisPermissionError(message=None)

Bases: PyCelonisError

Raises for PermissionError.

Parameters:

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

    Error message to display.

message instance-attribute

message = message

PyCelonisValueError

PyCelonisValueError(message=None)

Bases: PyCelonisError

Raised for ValueErrors.

Parameters:

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

    Error message to display.

message instance-attribute

message = message

PyCelonisAttributeError

PyCelonisAttributeError(message=None)

Bases: PyCelonisError

Raised for AttributeErrors.

Parameters:

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

    Error message to display.

message instance-attribute

message = message

PyCelonisTypeError

PyCelonisTypeError(message=None)

Bases: PyCelonisError

Raised for TypeErrors.

Parameters:

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

    Error message to display.

message instance-attribute

message = message

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.

message instance-attribute

message = message