Skip to content

odys.domain.exceptions

Custom exception hierarchy. All exceptions inherit from OdysError.

  • OdysError: Base exception for the library
  • OdysValidationError: Raised when input validation fails
  • OdysSolverError: Raised when the solver fails or returns an unexpected status
  • OdysNoResultsError: Raised when accessing results that don't exist

Custom exceptions for the odys library.

OdysError

Bases: Exception

Base exception for the odys library.

Source code in src/odys/domain/exceptions.py
4
5
class OdysError(Exception):
    """Base exception for the odys library."""

OdysNoResultsError

Bases: OdysError

Raised when accessing results that don't exist.

Source code in src/odys/domain/exceptions.py
16
17
class OdysNoResultsError(OdysError):
    """Raised when accessing results that don't exist."""

OdysSolverError

Bases: OdysError

Raised when the solver fails or returns an unexpected status.

Source code in src/odys/domain/exceptions.py
12
13
class OdysSolverError(OdysError):
    """Raised when the solver fails or returns an unexpected status."""

OdysValidationError

Bases: OdysError

Raised when input validation fails.

Source code in src/odys/domain/exceptions.py
8
9
class OdysValidationError(OdysError):
    """Raised when input validation fails."""