Skip to content

Exceptions

Custom exception classes raised by s2gos-generator.

s2gos_generator.core.exceptions.S2GOSError

Bases: Exception

Base exception for all S2GOS-related errors.

s2gos_generator.core.exceptions.DataNotFoundError

DataNotFoundError(message: str, path: str = None)

Bases: S2GOSError

Raised when required data files or directories cannot be found.

s2gos_generator.core.exceptions.ConfigurationError

ConfigurationError(message: str, config_field: str = None)

Bases: S2GOSError

Raised when configuration is invalid or incomplete.

s2gos_generator.core.exceptions.ProcessingError

ProcessingError(
    message: str,
    stage: str = None,
    original_error: Exception = None,
)

Bases: S2GOSError

Raised when data processing fails.

s2gos_generator.core.exceptions.RegridError

RegridError(
    message: str,
    stage: str = None,
    original_error: Exception = None,
)

Bases: ProcessingError

Raised when regridding operations fail.

s2gos_generator.core.exceptions.GeospatialError

GeospatialError(
    message: str,
    stage: str = None,
    original_error: Exception = None,
)

Bases: ProcessingError

Raised when geospatial operations fail.

s2gos_generator.core.exceptions.MaterialError

MaterialError(message: str, material_id: str = None)

Bases: S2GOSError

Raised when material operations fail.