iris.exceptions

Exceptions specific to the Iris package.

In this module:

Raised when a search yields no cell measures.

class iris.exceptions.CellMeasureNotFoundError

Bases: KeyError

Raised when a search yields no cell measures.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when concatenate is expected to produce a single cube, but fails to do so.

class iris.exceptions.ConcatenateError(differences)

Bases: iris.exceptions.IrisError

Creates a ConcatenateError with a list of textual descriptions of the differences which prevented a concatenate.

Args:

  • differences:
    The list of strings which describe the differences.
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when a constraint operation has failed to find the correct number of results.

class iris.exceptions.ConstraintMismatchError

Bases: iris.exceptions.IrisError

Raised when a constraint operation has failed to find the correct number of results.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when a requested coordinate cannot be collapsed.

class iris.exceptions.CoordinateCollapseError

Bases: iris.exceptions.IrisError

Raised when a requested coordinate cannot be collapsed.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when a routine doesn’t support multi-dimensional coordinates.

class iris.exceptions.CoordinateMultiDimError(msg)

Bases: ValueError

Raised when a routine doesn’t support multi-dimensional coordinates.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when a search yields no coordinates.

class iris.exceptions.CoordinateNotFoundError

Bases: KeyError

Raised when a search yields no coordinates.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when a coordinate is unexpectedly irregular.

class iris.exceptions.CoordinateNotRegularError

Bases: ValueError

Raised when a coordinate is unexpectedly irregular.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when merging two or more cubes that have identical metadata.

class iris.exceptions.DuplicateDataError(msg)

Bases: iris.exceptions.MergeError

Raised when merging two or more cubes that have identical metadata.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised from a callback function when a cube should be ignored on load.

class iris.exceptions.IgnoreCubeException

Bases: iris.exceptions.IrisError

Raised from a callback function when a cube should be ignored on load.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when a Cube validation check fails.

class iris.exceptions.InvalidCubeError

Bases: iris.exceptions.IrisError

Raised when a Cube validation check fails.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Base class for errors in the Iris package.

class iris.exceptions.IrisError

Bases: Exception

Base class for errors in the Iris package.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Common base class for all non-exit exceptions.

class iris.exceptions.LazyAggregatorError

Bases: Exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when merge is expected to produce a single cube, but fails to do so.

class iris.exceptions.MergeError(differences)

Bases: iris.exceptions.IrisError

Creates a MergeError with a list of textual descriptions of the differences which prevented a merge.

Args:

  • differences:
    The list of strings which describe the differences.
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised by missing functionality.

Different meaning to NotImplementedError, which is for abstract methods.

class iris.exceptions.NotYetImplementedError

Bases: iris.exceptions.IrisError

Raised by missing functionality.

Different meaning to NotImplementedError, which is for abstract methods.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when Iris is unable to translate format-specific codes.

class iris.exceptions.TranslationError

Bases: iris.exceptions.IrisError

Raised when Iris is unable to translate format-specific codes.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args

↑ top ↑

Raised when Iris is unable to convert a unit.

class iris.exceptions.UnitConversionError

Bases: iris.exceptions.IrisError

Raised when Iris is unable to convert a unit.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args