Interface UnexpectedResultReturned
interface UnexpectedResultReturned {
kind: "unexpected result";
message: string;
source:
| { kind: "dispatcher factory" }
| { kind: "workflow policy"; policy: PolicyName };
}
kind: "unexpected result";
message: string;
source:
| { kind: "dispatcher factory" }
| { kind: "workflow policy"; policy: PolicyName };
}
Properties
Readonlykind
kind: "unexpected result"
Tells this refusal from the others.
Readonlymessage
message: string
What was returned, and by whom, for the people reading it.
Readonlysource
What returned it.
Type Declaration
- { kind: "dispatcher factory" }
-
Readonlykind: "dispatcher factory"The executor's dispatcher factory returned it.
-
- { kind: "workflow policy"; policy: PolicyName }
-
Readonlykind: "workflow policy"The constructor of a workflow policy returned it.
-
Readonlypolicy: PolicyNameThe name of that policy.
-
The dispatcher factory, or the constructor of one of the workflow's policies, returned something its call cannot return, such as
undefined, which only a cast oranylets through. It is not a failure of that code, so the refusal carries no error.