Exceptions#

Exceptions that may be raised by ESMValCore.

Exceptions:

ESMValCoreDeprecationWarning

Custom deprecation warning.

ESMValCoreLoadWarning

Custom load warning.

ESMValCorePreprocessorWarning

Custom preprocessor warning.

ESMValCoreUserWarning

Base class from which other warnings are derived.

Error

Base class from which other exceptions are derived.

InputFilesNotFound(msg)

Files that are required to run the recipe have not been found.

InvalidConfigParameter

Config parameter is invalid.

MissingConfigParameter

Config parameter is missing.

RecipeError(msg)

Recipe contains an error.

SuppressedError

Errors subclassed from SuppressedError hide the full traceback.

exception esmvalcore.exceptions.ESMValCoreDeprecationWarning[source]#

Bases: ESMValCoreUserWarning

Custom deprecation warning.

exception esmvalcore.exceptions.ESMValCoreLoadWarning[source]#

Bases: ESMValCorePreprocessorWarning

Custom load warning.

exception esmvalcore.exceptions.ESMValCorePreprocessorWarning[source]#

Bases: ESMValCoreUserWarning

Custom preprocessor warning.

exception esmvalcore.exceptions.ESMValCoreUserWarning[source]#

Bases: UserWarning

Base class from which other warnings are derived.

exception esmvalcore.exceptions.Error[source]#

Bases: Exception

Base class from which other exceptions are derived.

exception esmvalcore.exceptions.InputFilesNotFound(msg: str)[source]#

Bases: RecipeError

Files that are required to run the recipe have not been found.

Parameters:

msg (str)

Return type:

None

exception esmvalcore.exceptions.InvalidConfigParameter[source]#

Bases: Error, SuppressedError

Config parameter is invalid.

exception esmvalcore.exceptions.MissingConfigParameter[source]#

Bases: ESMValCoreUserWarning

Config parameter is missing.

exception esmvalcore.exceptions.RecipeError(msg: str)[source]#

Bases: Error

Recipe contains an error.

Parameters:

msg (str)

Return type:

None

exception esmvalcore.exceptions.SuppressedError[source]#

Bases: Exception

Errors subclassed from SuppressedError hide the full traceback.

This can be used for simple user-facing errors that do not need the full traceback.