Function applyError

  • 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.)

    Type Parameters

    Parameters

    • state: State
    • errorType: string
    • Optional errorDetails: string

    Returns State

Generated using TypeDoc