Skip to main content

reraise

Reraise exception.

def reraise(
tp: type,
value: Exception,
tb: traceback = None
) - > null

Reraise exception.

Parameters

NameTypeDescription
tptypeThe type of the exception to be raised.
valueExceptionThe exception instance to be raised.
tbtraceback = NoneThe traceback object to associate with the exception; if provided and different from the current traceback, it is attached to the exception instance.

Returns

TypeDescription
nullThis function does not return a value as it always raises an exception.