Source code for toolbox_scs.util.exceptions
[docs]class ToolBoxPathError(ToolBoxError):
def __init__(self, message = "", path = ""):
self.path = path
self.message = f'Invalid path: {path}. ' + message
[docs]class ToolBoxTypeError(ToolBoxError):
def __init__(self, msg = "", dtype = ''):
self.dtype = dtype
self.message = "Unknown data type: " + dtype + " \n" + msg
[docs]class ToolBoxValueError(ToolBoxError):
def __init__(self, msg = "", val = None):
self.value = val
self.message = msg + " unknown value: " + str(val)
[docs]class ToolBoxFileError(ToolBoxError):
def __init__(self, msg = "", val = ''):
self.value = val
self.message = f"file: {val}, {msg}"