exception documentation

Error raised during workflow/activity execution.

Method __init__ Initialize an application error.
Property details User-defined details on the error.
Property next_retry_delay Delay before the next activity retry attempt.
Property non_retryable Whether the error was set as non-retryable when created.
Property type General error type.
Instance Variable _details Undocumented
Instance Variable _next_retry_delay Undocumented
Instance Variable _non_retryable Undocumented
Instance Variable _type Undocumented

Inherited from FailureError:

Property failure Underlying protobuf failure object.
Property message Message.
Instance Variable _failure Undocumented
Instance Variable _message Undocumented

Inherited from TemporalError (via FailureError):

Property cause Cause of the exception.
def __init__(self, message: str, *details: Any, type: Optional[str] = None, non_retryable: bool = False, next_retry_delay: Optional[timedelta] = None): (source)

Initialize an application error.

User-defined details on the error.

Delay before the next activity retry attempt.

User activity code may set this when raising ApplicationError to specify a delay before the next activity retry.

@property
non_retryable: bool = (source)

Whether the error was set as non-retryable when created.

Note: This is not whether the error is non-retryable via other means such as retry policy. This is just whether the error was marked non-retryable upon creation by the user.

General error type.

_details = (source)

Undocumented

_next_retry_delay = (source)

Undocumented

_non_retryable = (source)

Undocumented

Undocumented