6Collection of custom errors and exceptions.
12----------------------------------------------------------------------------------------------
19@author: garb_ma [DLR-FA,STM Braunschweig]
20----------------------------------------------------------------------------------------------
32 from builtins
import Exception
35from ..Tools
import Utility
41 Base class for all exceptions in this module.
49 Exception raised for errors in the input.
52 Expression -- Input expression in which the error occurred
56 Low-level initialization of input error class.
63 raise InputError(
'The temporary input file does not end with *cpd.')
65 raise InputError(
'Material dictionary is not given. Please define a material.')
67 raise InputError(
'Skin list is empty. Please define the skin geometry of the panel.')
69 raise NameError(
'Unknown mesh classification flag. Valid flags are: Structured, Unstructured or Hybrid.')
71 raise InputError(
'MeshImplementation list is empty. Please define the mesh discretization.')
73 raise InputError(
'No impact points are given.')
75 raise InputError(
'An unknown boundary condition is defined. Valid flags are: ENCASTRE or PINNED.')
77 raise NameError(
'Unknown API. Only Abaqus, Salome and Gmsh can be used for mesh generation.')
81 raise NameError(
'Unknown Solver. Only Abaqus, Calculix and Marc are supported. Please use a different solver.')
85 raise NameError(
'Import Error. Function is executed as a plug-in, but cannot load a required dependency')
87 raise NameError(
'Import Error. Mismatch between source code uploaded and requested. Please check content of your input.')
93 Raised when an operation attempts a state transition that's not allowed.
96 Previous -- State at beginning of transition
97 Following -- Attempted new state
98 Message -- Explanation of why the specific transition is not allowed
102 Low-level initialization of transition error class.
111if __name__ ==
'__main__':