cpdbench.exception.DatasetFetchException
1from cpdbench.exception.CPDExecutionException import CPDExecutionException 2 3 4class DatasetFetchException(CPDExecutionException): 5 """Exception type when something goes wrong while loading a dataset""" 6 7 def __init__(self, message): 8 super().__init__(message) 9 10 11class CPDDatasetCreationException(DatasetFetchException): 12 """Exception type when the initialization and creation of the CPDDataset object has failed""" 13 standard_msg_create_dataset = "Error while creating the CPDDataset object with the {0} function" 14 15 def __init__(self, dataset_function): 16 # function_name = get_name_of_function(dataset_function) 17 super().__init__(self.standard_msg_create_dataset.format(dataset_function)) 18 19 20class FeatureLoadingException(DatasetFetchException): 21 """Exception type when the loading of a feature of a CPDDataset has failed""" 22 standard_msg_load_feature = "Error while loading feature {0} of the CPDDataset from function {1}" 23 24 def __init__(self, dataset_function, feature): 25 # function_name = get_name_of_function(dataset_function) 26 super().__init__(self.standard_msg_load_feature.format(feature, dataset_function)) 27 28 29class SignalLoadingException(DatasetFetchException): 30 """Exception type when the loading of a signal of a CPDDataset has failed""" 31 standard_msg_load_signal = "Error while loading the signal of the CPDDataset from function {0}" 32 33 def __init__(self, dataset_function): 34 super().__init__(self.standard_msg_load_signal.format(dataset_function))
5class DatasetFetchException(CPDExecutionException): 6 """Exception type when something goes wrong while loading a dataset""" 7 8 def __init__(self, message): 9 super().__init__(message)
Exception type when something goes wrong while loading a dataset
Inherited Members
- builtins.BaseException
- with_traceback
- args
12class CPDDatasetCreationException(DatasetFetchException): 13 """Exception type when the initialization and creation of the CPDDataset object has failed""" 14 standard_msg_create_dataset = "Error while creating the CPDDataset object with the {0} function" 15 16 def __init__(self, dataset_function): 17 # function_name = get_name_of_function(dataset_function) 18 super().__init__(self.standard_msg_create_dataset.format(dataset_function))
Exception type when the initialization and creation of the CPDDataset object has failed
Inherited Members
- builtins.BaseException
- with_traceback
- args
21class FeatureLoadingException(DatasetFetchException): 22 """Exception type when the loading of a feature of a CPDDataset has failed""" 23 standard_msg_load_feature = "Error while loading feature {0} of the CPDDataset from function {1}" 24 25 def __init__(self, dataset_function, feature): 26 # function_name = get_name_of_function(dataset_function) 27 super().__init__(self.standard_msg_load_feature.format(feature, dataset_function))
Exception type when the loading of a feature of a CPDDataset has failed
Inherited Members
- builtins.BaseException
- with_traceback
- args
30class SignalLoadingException(DatasetFetchException): 31 """Exception type when the loading of a signal of a CPDDataset has failed""" 32 standard_msg_load_signal = "Error while loading the signal of the CPDDataset from function {0}" 33 34 def __init__(self, dataset_function): 35 super().__init__(self.standard_msg_load_signal.format(dataset_function))
Exception type when the loading of a signal of a CPDDataset has failed
Inherited Members
- builtins.BaseException
- with_traceback
- args