Skip to content

Exceptions

pyngb.NGBParseError

Bases: Exception

Base exception for NGB file parsing errors.

Source code in src/pyngb/exceptions.py
class NGBParseError(Exception):
    """Base exception for NGB file parsing errors."""

pyngb.NGBCorruptedFileError

Bases: NGBParseError

Raised when NGB file is corrupted or has invalid structure.

Source code in src/pyngb/exceptions.py
class NGBCorruptedFileError(NGBParseError):
    """Raised when NGB file is corrupted or has invalid structure."""

pyngb.NGBUnsupportedVersionError

Bases: NGBParseError

Raised when NGB file version is not supported.

Source code in src/pyngb/exceptions.py
class NGBUnsupportedVersionError(NGBParseError):
    """Raised when NGB file version is not supported."""

pyngb.NGBDataTypeError

Bases: NGBParseError

Raised when encountering unknown or invalid data type.

Source code in src/pyngb/exceptions.py
class NGBDataTypeError(NGBParseError):
    """Raised when encountering unknown or invalid data type."""

pyngb.NGBStreamNotFoundError

Bases: NGBParseError

Raised when expected stream is not found in NGB file.

Source code in src/pyngb/exceptions.py
class NGBStreamNotFoundError(NGBParseError):
    """Raised when expected stream is not found in NGB file."""