@amigo-ai/sdk
    Preparing search index...

    Class NetworkError

    Base error class for all Amigo SDK errors. Provides common functionality and error identification.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • message: string
      • OptionaloriginalError: Error
      • Optionalrequest: { method?: string; url?: string }

      Returns NetworkError

    Properties

    context?: Record<string, unknown>

    Additional context data

    errorCode?: string

    Unique error code for programmatic error handling

    originalError?: Error
    request?: { method?: string; url?: string }
    statusCode?: number

    HTTP status code if applicable

    Methods

    • Returns a JSON-serializable representation of the error. Sensitive fields (tokens, keys) are redacted to prevent leakage.

      Returns Record<string, unknown>