MCPcopy Index your code
hub / github.com/pyload/pyload / error

Method error

module/lib/bottle.py:703–708  ·  view source on GitHub ↗

Decorator: Register an output handler for a HTTP error code

(self, code=500)

Source from the content-addressed store, hash-verified

701 return self.route(path, method, **options)
702
703 def error(self, code=500):
704 """ Decorator: Register an output handler for a HTTP error code"""
705 def wrapper(handler):
706 self.error_handler[int(code)] = handler
707 return handler
708 return wrapper
709
710 def hook(self, name):
711 """ Return a decorator that attaches a callback to a hook. """

Callers 15

exceptHookFunction · 0.45
workMethod · 0.45
newMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
startBackendsMethod · 0.45
_downloadMethod · 0.45
bottle.pyFile · 0.45
_read_lenMethod · 0.45
readMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected