Function throwServiceResponse

  • When used in a catch clause of a promise, wraps the reason in a ServiceResponseError.

    Parameters

    • reason: any

    Returns never