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

Module Error

source code

Standardized Error Messages

Classes [hide private]
  FatalErrorPyFoamException
The PyFoam-exception that does not expect to be caught
  PyFoamException
The simplest exception for PyFoam
Functions [hide private]
 
__common(format, standard, *text)
Common function for errors and Warnings
source code
 
debug(*text)
Prints a debug message with the occuring line number
source code
 
error(*text)
Raises an error that might or might not get caught
source code
 
getLine(up=0) source code
 
notImplemented(obj, name)
Prints a 'not implemented' message for abstract interfaces
source code
 
oldSchoolError(*text)
Prints an error message and aborts
source code
 
warning(*text)
Prints a warning message with the occuring line number
source code
Variables [hide private]
  __package__ = 'PyFoam'
  defaultFormat = <PyFoam.Basics.TerminalFormatter.TerminalForma...

Imports: TerminalFormatter, print_, sys, traceback


Function Details [hide private]

debug(*text)

source code 

Prints a debug message with the occuring line number

Parameters:
  • text - The error message

error(*text)

source code 

Raises an error that might or might not get caught

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

oldSchoolError(*text)

source code 

Prints an error message and aborts

Parameters:
  • text - The error message

warning(*text)

source code 

Prints a warning message with the occuring line number

Parameters:
  • text - The error message

Variables Details [hide private]

defaultFormat

Value:
<PyFoam.Basics.TerminalFormatter.TerminalFormatter object at 0x110383c\
90>