Package gmisclib :: Module die2
[frames] | no frames]

Module die2

source code

Functions
 
note(name, val) source code
 
show(name) source code
 
die(s)
Output a fatal error message and terminate.
source code
 
warn(s)
Output a non-fatal warning.
source code
 
info(s)
Output useful information.
source code
 
catch(extext=None)
Call this inside an except statement.
source code
 
catchexit(extext=None, n=1, text=None)
Call this inside an except statement.
source code
 
dbg(s)
Output debugging information, if debug is nonzero.
source code
 
exit(n, text=None)
Exit, after dumping accumulated messages.
source code
 
get(key) source code
Variables
  debug = True
  compress = True
  logfd = sys.stderr
  __package__ = 'gmisclib'

Imports: inspect, sys, traceback


Function Details

catch(extext=None)

source code 

Call this inside an except statement. It will report the exception and any other information it has.

catchexit(extext=None, n=1, text=None)

source code 

Call this inside an except statement. It will report all information and then exit.