6 Collection of custom errors and exceptions. 12 ---------------------------------------------------------------------------------------------- 19 @author: garb_ma [DLR-FA,STM Braunschweig] 20 ---------------------------------------------------------------------------------------------- 32 from builtins
import Exception
35 from ..Tools
import Utility
41 Base class for all exceptions in this module. 45 Prepare the object for pickling (2to3 compatible) 47 _dictobj = Utility.PrepareObjectforPickling(self)
51 Recover a dictionary from pickling (2to3 compatible) 53 _dictobj = Utility.RecoverDictionaryfromPickling(_dict)
54 self.__dict__.update(_dictobj)
62 Exception raised for errors in the input. 65 Expression -- Input expression in which the error occurred 69 Low-level initialization of input error class. 76 raise InputError(
'The temporary input file does not end with *cpd.')
78 raise InputError(
'Material dictionary is not given. Please define a material.')
80 raise InputError(
'Skin list is empty. Please define the skin geometry of the panel.')
82 raise NameError(
'Unknown mesh classification flag. Valid flags are: Structured, Unstructured or Hybrid.')
84 raise InputError(
'MeshImplementation list is empty. Please define the mesh discretization.')
86 raise InputError(
'No impact points are given.')
88 raise InputError(
'An unknown boundary condition is defined. Valid flags are: ENCASTRE or PINNED.')
90 raise NameError(
'Unknown API. Only Abaqus, Salome and Gmsh can be used for mesh generation.')
94 raise NameError(
'Unknown Solver. Only Abaqus, Calculix and Marc are supported. Please use a different solver.')
98 raise NameError(
'Import Error. Function is executed as a plug-in, but cannot load a required dependency')
100 raise NameError(
'Import Error. Mismatch between source code uploaded and requested. Please check content of your input.')
106 Raised when an operation attempts a state transition that's not allowed. 109 Previous -- State at beginning of transition 110 Following -- Attempted new state 111 Message -- Explanation of why the specific transition is not allowed 115 Low-level initialization of transition error class. 124 if __name__ ==
'__main__':