Source code for spinningdiskanalyzer.frontend.viewer.errors

"""Custom errors raised by the package."""


[docs] class FileFormatError(Exception): """Indicates an error in the image's file format.""" def __init__(self, message='Error in file format.'): super().__init__(message)
[docs] class ZoomError(Exception): """Indicates an invalid zoom level was requested.""" def __init__(self, message='Zoom level not available.'): super().__init__(message)