Package cherrypy :: Module _cptools :: Class ErrorTool
[hide private]
[frames] | no frames]

Class ErrorTool

source code

object --+    
         |    
      Tool --+
             |
            ErrorTool

Tool which is used to replace the default request.error_response.

Instance Methods [hide private]
 
__init__(self, callable, name=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_wrapper(self) source code
 
_setup(self)
Hook this tool into cherrypy.request.
source code

Inherited from Tool: __call__

Inherited from Tool (private): _merged_args, _setargs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from Tool: namespace

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, callable, name=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_setup(self)

source code 

Hook this tool into cherrypy.request.

The standard CherryPy request object will automatically call this method when the tool is "turned on" in config.

Overrides: Tool._setup