class documentation
class StrandsFailureConverter(DefaultFailureConverter): (source)
Constructor: StrandsFailureConverter(encode_common_attributes)
Failure converter that preserves Strands exception payloads and retryability.
| Method | to |
Translate Strands exceptions to typed ApplicationErrors. |
Inherited from DefaultFailureConverter:
| Method | __init__ |
Create the default failure converter. |
| Method | from |
See base class. |
| Method | _error |
Undocumented |
| Method | _nexus |
Undocumented |
| Method | _nexus |
Undocumented |
| Method | _temporal |
Undocumented |
| Instance Variable | _encode |
Undocumented |
Inherited from FailureConverter (via DefaultFailureConverter):
| Class Variable | default |
Default failure converter. |
def to_failure(self, exception:
BaseException, payload_converter: PayloadConverter, failure: temporalio.api.failure.v1.Failure):
(source)
ΒΆ
Translate Strands exceptions to typed ApplicationErrors.