applyError<State>(state: State, errorType: string, errorDetails?: string): State
Applies the error to a state.
Remarks
If the state already has an error, this method does not override it.
(Evaluation should end after the first encountered error, so further errors
aren't relevant.)
Applies the
error
to astate
.Remarks
If the state already has an error, this method does not override it. (Evaluation should end after the first encountered error, so further errors aren't relevant.)