8.1.6. pelicun.pelicun_warnings

Pelicun warning and error classes.

Exceptions

InconsistentUnitsError([message, file])

Exception raised for inconsistent or invalid units.

PelicunInvalidConfigError([message])

Exception raised for errors in the configuration of Pelicun.

PelicunWarning

Custom warning for specific use in the Pelicun project.

exception pelicun.pelicun_warnings.InconsistentUnitsError(message: str = 'Inconsistent units.', file: str | None = None)[source]

Exception raised for inconsistent or invalid units.

Attributes:
messagestr

Explanation of the error.

exception pelicun.pelicun_warnings.PelicunInvalidConfigError(message: str = 'Invalid options in configuration file.')[source]

Exception raised for errors in the configuration of Pelicun.

Attributes:
message: str

Explanation of the error.

exception pelicun.pelicun_warnings.PelicunWarning[source]

Custom warning for specific use in the Pelicun project.