Source code for tiatoolbox.utils.exceptions
"""Custom Errors and Exceptions for TIAToolbox."""
[docs]class FileNotSupported(Exception):
"""Raise No supported file found error."""
def __init__(self, message="File format is not supported"):
self.message = message
super().__init__(self.message)
[docs]class MethodNotSupported(Exception):
"""Raise No supported file found error."""
def __init__(self, message="Method is not supported"):
self.message = message
super().__init__(self.message)