ChildWorkflowFailure
extends TemporalFailure
in package
Represents failures that can cross workflow and activity boundaries.
Only exceptions that extend this class will be propagated to the caller.
Never extend this class or any of its derivatives. They are to be used by the SDK code only. Throw an instance [](ApplicationFailure) to pass application specific errors between workflows and activities.
Any unhandled exception thrown by an activity or workflow will be converted to an instance of [](ApplicationFailure).
Table of Contents
Properties
- $execution : WorkflowExecution
- $failure : Failure|null
- $initiatedEventId : int
- $namespace : string
- $originalMessage : string
- $originalStackTrace : string|null
- $retryState : int
- $startedEventId : int
- $workflowType : string
Methods
- __construct() : mixed
- __toString() : string
- getExecution() : WorkflowExecution
- getFailure() : Failure|null
- getInitiatedEventId() : int
- getNamespace() : string
- getOriginalMessage() : string
- getOriginalStackTrace() : string|null
- getRetryState() : int
- getStartedEventId() : int
- getWorkflowType() : string
- hasOriginalStackTrace() : bool
- setDataConverter() : void
- setFailure() : void
- setOriginalStackTrace() : void
- buildMessage() : string
- Explain known types of key=>value pairs.
Properties
$execution
private
WorkflowExecution
$execution
$failure
private
Failure|null
$failure
= null
$initiatedEventId
private
int
$initiatedEventId
$namespace
private
string
$namespace
$originalMessage
private
string
$originalMessage
$originalStackTrace
private
string|null
$originalStackTrace
= null
$retryState
private
int
$retryState
$startedEventId
private
int
$startedEventId
$workflowType
private
string
$workflowType
Methods
__construct()
public
__construct(int $initiatedEventId, int $startedEventId, string $workflowType, WorkflowExecution $execution, string $namespace, int $retryState[, Throwable|null $previous = null ]) : mixed
Parameters
- $initiatedEventId : int
- $startedEventId : int
- $workflowType : string
- $execution : WorkflowExecution
- $namespace : string
- $retryState : int
- $previous : Throwable|null = null
__toString()
public
__toString() : string
Return values
stringgetExecution()
public
getExecution() : WorkflowExecution
Return values
WorkflowExecutiongetFailure()
public
getFailure() : Failure|null
Return values
Failure|nullgetInitiatedEventId()
public
getInitiatedEventId() : int
Return values
intgetNamespace()
public
getNamespace() : string
Return values
stringgetOriginalMessage()
public
getOriginalMessage() : string
Return values
stringgetOriginalStackTrace()
public
getOriginalStackTrace() : string|null
Return values
string|nullgetRetryState()
public
getRetryState() : int
Return values
intgetStartedEventId()
public
getStartedEventId() : int
Return values
intgetWorkflowType()
public
getWorkflowType() : string
Return values
stringhasOriginalStackTrace()
public
hasOriginalStackTrace() : bool
Tags
Return values
boolsetDataConverter()
public
setDataConverter(DataConverterInterface $converter) : void
Parameters
- $converter : DataConverterInterface
setFailure()
public
setFailure(Failure|null $failure) : void
Parameters
- $failure : Failure|null
setOriginalStackTrace()
public
setOriginalStackTrace(string $stackTrace) : void
Parameters
- $stackTrace : string
buildMessage()
Explain known types of key=>value pairs.
protected
static buildMessage(array<string|int, mixed> $values) : string
Parameters
- $values : array<string|int, mixed>