Source code for ms_camera_model.errors

"""
Multispectral Camera Model - Custom Errors
==========================================

* **Description:** Custom error definitions to improve readability and make debugging easier
* **Author:** Tomas Vacek
* **Year:** 2026
* **License:** MIT License
"""


[docs] class ImageDataIncompatible(Exception): """ Image Data is incompatible """
[docs] class IncompatibleBandChoice(Exception): """ Chosen bands are not compatible with this method """
[docs] class NoProvidedFilepaths(Exception): """ No filepaths were provided """
[docs] class NoImageData(Exception): """ Provided ImageData instance doesn't contain img_data """
[docs] class NoProvidedArea(Exception): """ No area was provided """
[docs] class NoBandCenters(Exception): """ Provided ImageData class instance doesn't contain band_centers """
[docs] class InvalidProvidedArea(Exception): """ Provided area is invalid """
[docs] class NoDarkFrame(Exception): """ No embedded dark frame found """
[docs] class AreaOutsideOfBounds(Exception): """ The provided area is outside of bounds of the image """
[docs] class ImageImportFailed(Exception): """ Image import failed """
[docs] class WavelengthMismatch(Exception): """ Provided filter wavelengths do not match with available hyperspectral image data """
[docs] class NoProvidedFilterSensorUnits(Exception): """ No provided FilterSensorUnit class instances """
[docs] class ImageRegistrationFailed(Exception): """ Image registration is not possible for the provided ImageData class instances """