class documentation

Default failure converter.

A singleton instance of this is available at FailureConverter.default.

Method __init__ Create the default failure converter.
Method from_failure See base class.
Method to_failure See base class.
Method _error_to_failure Undocumented
Instance Variable _encode_common_attributes Undocumented

Inherited from FailureConverter:

Class Variable default Default failure converter.
def __init__(self, *, encode_common_attributes: bool = False): (source)

Create the default failure converter.

Parameters
encode_common_attributes:boolIf 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 to_failure(self, exception: BaseException, payload_converter: PayloadConverter, failure: temporalio.api.failure.v1.Failure): (source)
def _error_to_failure(self, error: temporalio.exceptions.FailureError, payload_converter: PayloadConverter, failure: temporalio.api.failure.v1.Failure): (source)

Undocumented

_encode_common_attributes = (source)

Undocumented