PyFoam.Error module
Standardized Error Messages
- exception PyFoam.Error.FatalErrorPyFoamException(*text, **kwargs)[source]
Bases:
PyFoamExceptionThe PyFoam-exception that does not expect to be caught
- __annotations__ = {}
- __module__ = 'PyFoam.Error'
- exception PyFoam.Error.PyFoamException(*text)[source]
Bases:
ExceptionThe simplest exception for PyFoam
- __annotations__ = {}
- __module__ = 'PyFoam.Error'
- __weakref__
list of weak references to the object (if defined)
- PyFoam.Error.debug(*text)[source]
Prints a debug message with the occuring line number :param text: The error message
- PyFoam.Error.error(*text)[source]
Raises an error that might or might not get caught :param text: The error message
- PyFoam.Error.isatty(s)[source]
Workaround for outputstreams that don’t implement isatty (specifically vtkPythonStdStreamCaptureHelper)
- PyFoam.Error.notImplemented(obj, name)[source]
Prints a ‘not implemented’ message for abstract interfaces :param obj: the object for which the method is not defined :param name: name of the method