Package PyFoam :: Module Error
[hide private]
[frames] | no frames]

Module Error

source code

Standardized Error Messages

Classes [hide private]
  PyFoamException
The simplest exception for PyFoam
Functions [hide private]
 
getLine(up=0) source code
 
__common(format, standard, *text)
Common function for errors and Warnings
source code
 
warning(*text)
Prints a warning message with the occuring line number
source code
 
error(*text)
Prints an error message with the occuring line number and aborts
source code
 
debug(*text)
Prints a debug message with the occuring line number
source code
 
notImplemented(obj, name)
Prints a 'not implemented' message for abstract interfaces
source code
Variables [hide private]
  defaultFormat = TerminalFormatter()
Function Details [hide private]

warning(*text)

source code 

Prints a warning message with the occuring line number

Parameters:
  • text - The error message

error(*text)

source code 

Prints an error message with the occuring line number and aborts

Parameters:
  • text - The error message

debug(*text)

source code 

Prints a debug message with the occuring line number

Parameters:
  • text - The error message

notImplemented(obj, name)

source code 

Prints a 'not implemented' message for abstract interfaces

Parameters:
  • obj - the object for which the method is not defined
  • name - name of the method