tblib.decorators

Module Contents

Classes

Error

Functions

reraise(tp, value[, tb])

return_error(func[, exc_type])

apply_with_return_error(args)

args is a tuple where the first argument is a callable.

tblib.decorators.reraise(tp, value, tb=None)[source]
class tblib.decorators.Error(exc_type, exc_value, traceback)[source]
property traceback
reraise()[source]
tblib.decorators.return_error(func, exc_type=Exception)[source]
tblib.decorators.apply_with_return_error(args)[source]

args is a tuple where the first argument is a callable.

eg:

apply_with_return_error((func, 1, 2, 3)) - this will call func(1, 2, 3)