@sumup/sdk
    Preparing search index...

    Class APIError<T>

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Index
    • Type Parameters

      • T = unknown

      Parameters

      • status: number
      • error: string | T
      • response: Response
      • Optionaloptions: ErrorOptions

      Returns APIError<T>

    cause?: unknown
    error: string | T
    message: string
    name: string
    response: Response
    stack?: string
    status: number
    • get problem(): Problem | undefined

      Typed Problem details, when the API returned a Problem response.

      Returns Problem | undefined

    • Parameters

      • response: Response

      Returns Promise<APIError<unknown>>