LedeWire SDK API Reference
    Preparing search index...

    Class PurchaseError

    Thrown when the purchase cannot be completed due to a validation failure, such as a price mismatch or a duplicate purchase.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • message: string
      • statusCode: number
      • Optionalcode: number

      Returns PurchaseError

    Properties

    code: number | undefined

    Machine-readable error code from the API error body, if present.

    statusCode: number

    HTTP status code returned by the API (e.g. 400, 401, 404, 422).