Error class for Purchases SDK. You should handle these errors and react accordingly in your app.

Hierarchy

  • Error
    • PurchasesError

Constructors

  • Parameters

    • errorCode: ErrorCode

      Error code for the error. This is useful to appropriately react to different error situations.

    • Optional message: string

      Message for the error. This is useful for debugging and logging.

    • Optional underlyingErrorMessage: null | string

      Underlying error message. This provides more details on the error and can be useful for debugging and logging.

    Returns PurchasesError

Properties

errorCode: ErrorCode

Error code for the error. This is useful to appropriately react to different error situations.

message: string
name: string
stack?: string
underlyingErrorMessage?: null | string

Underlying error message. This provides more details on the error and can be useful for debugging and logging.

prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void