Interface UnexpectedResult
interface UnexpectedResult {
message: string;
reason: "unexpected result";
source: ByStep | ByAdapterForKey | ByStepHook | ByProviderForKey | ByPolicy;
step: StepName;
}
message: string;
reason: "unexpected result";
source: ByStep | ByAdapterForKey | ByStepHook | ByProviderForKey | ByPolicy;
step: StepName;
}
Properties
Readonlymessage
message: string
What was returned, and by whom, for the people reading it.
Readonlyreason
reason: "unexpected result"
Why the journey was aborted.
Readonlysource
What returned it: the step's or rescue step's own run or constructor, a
step hook, an input adapter with the key of the input it was resolving, a
service provider with the key of the service, or a step policy's
constructor.
Readonlystep
The name of the step being attempted, or the rescue step's.
Custom code returned something its call cannot return, such as
undefinedwhere an outcome is awaited, which only a cast oranylets through. It is not a failure of that code, so it carries no error, and it is never retried.