Skip to content

Exceptions

Exception classes for PyChassis.

ChassisError

Bases: Exception

Base exception for all Chassis errors.

Source code in chassis/exceptions.py
4
5
6
7
class ChassisError(Exception):
    """Base exception for all Chassis errors."""

    pass

DimensionMismatchError

Bases: ChassisError

Raised when vector dimensions don't match index dimensions.

Source code in chassis/exceptions.py
10
11
12
13
class DimensionMismatchError(ChassisError):
    """Raised when vector dimensions don't match index dimensions."""

    pass

IndexNotFoundError

Bases: ChassisError

Raised when the index file cannot be found or opened.

Source code in chassis/exceptions.py
22
23
24
25
class IndexNotFoundError(ChassisError):
    """Raised when the index file cannot be found or opened."""

    pass

InvalidPathError

Bases: ChassisError

Raised when the path is invalid or inaccessible.

Source code in chassis/exceptions.py
16
17
18
19
class InvalidPathError(ChassisError):
    """Raised when the path is invalid or inaccessible."""

    pass

NullPointerError

Bases: ChassisError

Raised when a NULL pointer is returned from FFI.

Source code in chassis/exceptions.py
28
29
30
31
class NullPointerError(ChassisError):
    """Raised when a NULL pointer is returned from FFI."""

    pass