PyFoam.Error module

Standardized Error Messages

exception PyFoam.Error.FatalErrorPyFoamException(*text, **kwargs)[source]

Bases: PyFoam.Error.PyFoamException

The PyFoam-exception that does not expect to be caught

exception PyFoam.Error.PyFoamException(*text)[source]

Bases: Exception

The simplest exception for PyFoam

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.getLine(up=0)[source]
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

PyFoam.Error.oldSchoolError(*text)[source]

Prints an error message and aborts :param text: The error message

PyFoam.Error.warning(*text)[source]

Prints a warning message with the occuring line number :param text: The error message