zerot
    Preparing search index...

    Class ContractError

    Base class for all contract-related errors. Provides a structured way to define errors with a code, category, and additional details.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • message: string

        The error message.

      • Optionaloptions: {
            category?: ErrorCategory;
            code?: string;
            details?: Record<string, any>;
            isRecoverable?: boolean;
        }

        Additional options for the error.

        • Optionalcategory?: ErrorCategory

          The category of the error.

        • Optionalcode?: string

          A specific error code.

        • Optionaldetails?: Record<string, any>

          Additional details about the error.

        • OptionalisRecoverable?: boolean

          Indicates if the error is recoverable.

      Returns ContractError

    Properties

    category: ErrorCategory
    code?: string
    details?: Record<string, any>
    isRecoverable?: boolean