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=20, raiseExceptions=True) inits log if none given | source code
__getattr__(self, name) use self._log items | source code
__handle(self, msg=u'', token=None, error=xml.dom.SyntaxErr, neverraise=False, args=None) handles all calls logs or raises exception | source code
setLog(self, log) set log of errorhandler's log | source code
setlog(*args, **kwargs) | source code
setloglevel(*args, **kwargs) | source code
_ErrorHandler__handle(self, msg=`u'````'`, token=None, error=<class 'xml.dom.SyntaxErr'>, neverraise=False, args=None) 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=20, raiseExceptions=True) (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 raised e.g. during building False: Errors will be written to the log, this is the default behaviour when parsing Overrides: object.__init__

### setlog(*args, **kwargs) | source code
Decorators: `@Deprecated('Use setLog() instead.')`

### setloglevel(*args, **kwargs) | source code
Decorators: `@Deprecated('Use setLevel() instead.')`