riogrande.io.exceptions#

Custom exceptions for the riogrande I/O layer.

Exceptions defined here are raised when operations on Source and Band objects encounter invalid or ambiguous states, such as band selection failures, missing source files, or unrecognised file extensions.

Exceptions#

BandSelectionAmbiguousError

Multiple bands match the provided tags

BandSelectionNoMatchError

No band found with matching tags

InvalidMaskSelectorError

A selector string was used that did not match to any mask reader.

SourceNotSavedError

Source cannot be found at the specified location.

UnknownExtensionError

Handeling of file with the given extension unclear.

Module Contents#

exception riogrande.io.exceptions.BandSelectionAmbiguousError[source]#

Bases: Exception

Multiple bands match the provided tags

exception riogrande.io.exceptions.BandSelectionNoMatchError[source]#

Bases: Exception

No band found with matching tags

exception riogrande.io.exceptions.InvalidMaskSelectorError[source]#

Bases: Exception

A selector string was used that did not match to any mask reader.

exception riogrande.io.exceptions.SourceNotSavedError[source]#

Bases: Exception

Source cannot be found at the specified location. Either the path is wrong or the related data is not (yet) saved to file.

exception riogrande.io.exceptions.UnknownExtensionError[source]#

Bases: Exception

Handeling of file with the given extension unclear.