[docs]
class GlassCutException(Exception):
"""GlassCut custom exception main class"""
[docs]
class SlidePropertyError(GlassCutException):
"""Raised when a required slide property is not available."""
[docs]
class BackendError(GlassCutException):
"""Raised when there's an issue with the slide backend."""
[docs]
class MagnificationError(GlassCutException):
"""Raised when requested magnification is not available."""
[docs]
class TileSizeOrCoordinatesError(GlassCutException):
"""Raised when tile size or coordinates are invalid."""
[docs]
class FilterCompositionError(GlassCutException):
"""Raised when a filter composition for the class is not available"""