Function handleErrorPrivate

  • Private

    Parameters

    • msg: string

      The error message to throw.

    • expression: any = true

      The expression to evaluate.

    Returns void

    Function

    handleError

    Memberof

    Services

    Description

    Throws an error if the expression evaluates to true.

    Example

    handleError("Invalid arguments provided");
    // => Error: Invalid arguments provided

Generated using TypeDoc