Trees | Index | Help |
|
---|
Package utility :: Module ErrorUtility :: Class ErrorUtility |
|
Singleton
--+
|
ErrorUtility
Method Summary | |
---|---|
ErrorUtility's constructor. | |
Handles an exception to be raised. | |
Register a client to the notify list | |
Accessors | |
Set testing mode. | |
Set the output stream onto which error messages are written. | |
Unset testing mode | |
Get the output stream |
Class Variable Summary | |
---|---|
Accessors | |
Callable |
getInstance = <utility.ErrorUtility.Callable instance at...
|
Method Details |
---|
setOutput(self, output)Set the output stream onto which error messages are written. |
setTesting(self)Set testing mode. Exceptions are now raised directly instead of being simply logged. This allows tests for failures in PyUnit (assertRaises(x)). |
unsetTesting(self)Unset testing mode |
getOutput(self)Get the output stream |
__init__(self,
output=<epydoc.imports._DevNull instance at 0xf6fb2a8c>,
testing=False)
ErrorUtility's constructor.
|
exceptionRaised(self, exception, level=2)Handles an exception to be raised. If the level is FATAL, send a handleError() to the registered clients so that they can perform backup actions before the applications ends. If the level is not FATAL (LOG,WARNING), the error is simply written to the output stream.
|
register(self, client)Register a client to the notify list
|
Class Variable Details |
---|
getInstance
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Aug 17 18:20:06 2004 | http://epydoc.sf.net |