landlab.core.errors

exception Error[source]

Bases: Exception

Base class for exceptions raised from this module.

__init__(*args, **kwargs)
classmethod __new__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception MissingKeyError[source]

Bases: Error

Error to indicate a missing parameter key.

Raise this error if the parameter dictionary file does not contain a requested key.

__init__(key)[source]
classmethod __new__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception ParameterValueError[source]

Bases: Error

Error to indicate a bad parameter values.

Raise this error if a parameter value given by key is not of the expected type.

__init__(key, val, expected_type)[source]
classmethod __new__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception ValidationError[source]

Bases: Error

Error to indicate that a validation has failed.

__init__(*args, **kwargs)
classmethod __new__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.