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

Module Error

source code

Standardized Error Messages

Functions [hide private]
  getLine(up=0)
  __common(standard, *text)
Common function for errors and Warnings
  warning(*text)
Prints a warning message with the occuring line number
  error(*text)
Prints an error message with the occuring line number and aborts
  debug(*text)
Prints a debug message with the occuring line number

Imports: traceback, sys


Function Details [hide private]

getLine(up=0)

source code 
None

__common(standard, *text)

source code 
Common function for errors and Warnings

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