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

    Class AmigoError

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • message: string
      • Optionaloptions: { context?: Record<string, unknown>; errorCode?: string; statusCode?: number }

      Returns AmigoError

    Properties

    context?: Record<string, unknown>

    Additional context data

    errorCode?: string

    Unique error code for programmatic error handling

    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>