Skip to content

Exceptions

All exceptions inherit from PyGAEBError.

Exception Hierarchy

PyGAEBError
├── GAEBParseError           # File not found, format unrecognized, XML parsing failure
├── GAEBValidationError      # Raised in strict mode on first ERROR-severity result
└── ClassificationBackendError  # LLM call failure, import error for optional deps

PyGAEBError

PyGAEBError

Bases: Exception

Base exception for all pyGAEB errors.

GAEBParseError

GAEBParseError

GAEBParseError(message, errors=None)

Bases: PyGAEBError

Raised when a file cannot be parsed at all (even after recovery).

GAEBValidationError

GAEBValidationError

Bases: PyGAEBError

Raised in strict mode on the first ERROR-level validation result.

ClassificationBackendError

ClassificationBackendError

Bases: PyGAEBError

Raised when all LLM backends (including fallbacks) fail.