Package cssutils :: Module errorhandler :: Class _ErrorHandler |
[hide private]
[frames] | no frames]

# Class _ErrorHandler

source code

    object --+
             |
            _ErrorHandler

Known Subclasses:
  ErrorHandler

handles all errors and log messages

Instance Methods | [hide private]
__init__(self, log, defaultloglevel=10, raiseExceptions=False) inits log if none given | source code
__getattr__(self, name) | source code
setlog(self, log) set log of errorhandler's log | source code
setloglevel(self, level) set level of errorhandler's log | source code
__handle(self, msg=u'', token=None, error=xml.dom.SyntaxErr, neverraise=False) handles all calls logs or raises exception | source code
_ErrorHandler__handle(self, msg=`u'````'`, token=None, error=<class 'xml.dom.SyntaxErr'>, neverraise=False) handles all calls logs or raises exception | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, log, defaultloglevel=10, raiseExceptions=False) (Constructor) | source code
inits log if none given log for parse messages, default logs to sys.stderr defaultloglevel if none give this is logging.DEBUG raiseExceptions True: Errors will be reported to the calling app, e.g. during building False: Errors will be written to the log, this is the default behaviour when parsing Overrides: object.__init__