class documentation
class DefaultFailureConverter(FailureConverter): (source)
Known subclasses: temporalio.converter.DefaultFailureConverterWithEncodedAttributes
Constructor: DefaultFailureConverter(encode_common_attributes)
Default failure converter.
A singleton instance of this is available at
FailureConverter.default
.
Method | __init__ |
Create the default failure converter. |
Method | from |
See base class. |
Method | to |
See base class. |
Method | _error |
Undocumented |
Instance Variable | _encode |
Undocumented |
Inherited from FailureConverter
:
Class Variable | default |
Default failure converter. |
Create the default failure converter.
Parameters | |
encodebool | If True, the message and stack trace of the failure will be moved into the encoded attribute section of the failure which can be encoded with a codec. |
def from_failure(self, failure:
temporalio.api.failure.v1.Failure
, payload_converter: PayloadConverter
) -> BaseException
:
(source)
¶
See base class.
def to_failure(self, exception:
BaseException
, payload_converter: PayloadConverter
, failure: temporalio.api.failure.v1.Failure
):
(source)
¶
See base class.
def _error_to_failure(self, error:
temporalio.exceptions.FailureError
, payload_converter: PayloadConverter
, failure: temporalio.api.failure.v1.Failure
):
(source)
¶
Undocumented