tblib.decorators

Module Contents

Classes

Error

Functions

return_error(func[, exc_type])

apply_with_return_error(args)

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

class tblib.decorators.Error(exc_type, exc_value, traceback)
property traceback
reraise()
tblib.decorators.return_error(func, exc_type=Exception)
tblib.decorators.apply_with_return_error(args)

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)