class CopiedFailure(RemoteCopy, failure.Failure): (source)
Constructor: CopiedFailure(exc_value, exc_type, exc_tb, captureVars)
A CopiedFailure
is a pb.RemoteCopy
of a failure.Failure
transferred via PB.
Method | print |
Emulate Python's standard error reporting mechanism. |
Method | set |
I will be invoked with the state to copy locally. |
Method | throw |
Throw the original exception into the given generator, preserving traceback information if available. In the case of a CopiedFailure where the exception type is a string, a pb.RemoteError is thrown instead. |
Instance Variable | traceback |
The remote traceback. |
Instance Variable | type |
The full import path of the exception class which was raised on the remote end. |
Instance Variable | value |
A str() representation of the remote value. |
Inherited from RemoteCopy
:
Method | unjelly |
Perform the inverse operation of Jellyable.jellyFor . |
Instance Variable | __dict__ |
Undocumented |
Inherited from Unjellyable
(via RemoteCopy
):
Method | set |
Undocumented |
Inherited from Failure
(via RemoteCopy
, Unjellyable
):
Method | __getstate__ |
Avoid pickling objects in the traceback. |
Method | __init__ |
Initialize me with an explanation of the error. |
Method | __reduce__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __setstate__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | check |
Check if this failure's type is in a predetermined list. |
Method | clean |
Remove references to other objects, replacing them with strings. |
Method | frames |
Undocumented |
Method | get |
Undocumented |
Method | get |
Get a string of the exception which caused this Failure. |
Method | get |
Undocumented |
Method | get |
Get an object that represents this Failure's stack that can be passed to traceback.extract_tb. |
Method | parents |
Undocumented |
Method | print |
Print a traceback as densely as possible. |
Method | print |
Print a traceback with detailed locals and globals information. |
Method | raise |
raise the original exception, preserving traceback information if available. |
Method | stack |
Undocumented |
Method | trap |
Trap this failure if its type is in a predetermined list. |
Class Variable | pickled |
Undocumented |
Instance Variable | capture |
Undocumented |
Instance Variable | count |
Undocumented |
Instance Variable | tb |
Undocumented |
Property | frames |
Undocumented |
Property | parents |
Undocumented |
Property | stack |
Undocumented |
Static Method | _without |
Create a Failure for an exception without a traceback. |
Method | _extrapolate |
Extrapolate from one failure into another, copying its stack frames. |
Instance Variable | _frames |
Undocumented |
Instance Variable | _parents |
Undocumented |
Emulate Python's standard error reporting mechanism.
Parameters | |
file | If specified, a file-like object to which to write the traceback. |
elide | Deprecated, ignored. |
detail | A string indicating how much information to include in the traceback. Must be one of 'brief', 'default', or 'verbose'. |
I will be invoked with the state to copy locally.
'state' is the data returned from the remote object's 'getStateToCopyFor' method, which will often be the remote object's dictionary (or a filtered approximation of it depending on my peer's perspective).
Throw the original exception into the given generator, preserving traceback information if available. In the case of a CopiedFailure
where the exception type is a string, a pb.RemoteError
is thrown instead.
Returns | |
The next value yielded from the generator. | |
Raises | |
StopIteration | If there are no more values in the generator. |
RemoteError | The wrapped remote exception. |
twisted.python.failure.Failure.type
The full import path of the exception class which was raised on the remote end.