Represents a configuration error in the SDK.

This class extends ESPBaseError and is used to handle errors related to configuration issues during SDK setup or runtime operations.

Hierarchy (View Summary)

Constructors

  • Constructs a new instance of ESPConfigError.

    Parameters

    • code:
          | "SDK_NOT_CONFIGURED"
          | "INVALID_CONFIG_OBJECT"
          | "INVALID_BASE_URL"
          | "INVALID_AUTH_URL"
          | "REDIRECT_URL_REQUIRED"
          | "INVALID_REDIRECT_URL"
          | "CLIENT_ID_REQUIRED"
          | "INVALID_TRANSPORT_MODE"

      The error code corresponding to a specific configuration error message from configErrorMessages.

    Returns ESPConfigError

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