Represents an error related to claiming issues.

This class extends ESPBaseError and is used to handle errors that occur during the device claiming process, such as certificate generation and device claiming.

Hierarchy (View Summary)

Constructors

  • Creates an instance of ESPClaimError.

    Parameters

    • code:
          | "CLAIM_START_FAILED"
          | "CLAIM_ABORTED"
          | "CLAIM_API_FAILED"
          | "CSR_RETRIEVAL_FAILED"
          | "CERTIFICATE_SEND_FAILED"

      The error code corresponding to a specific claiming error message from claimErrorMessages.

    Returns ESPClaimError

Properties

cause?: unknown
code: string

The specific error code associated with the error.

label: string

A label to classify the error type.

message: string
name: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void