The error message.
Optional
options: {Additional options for the error.
Optional
category?: ErrorCategoryThe category of the error.
Optional
code?: stringA specific error code.
Optional
details?: Record<string, any>Additional details about the error.
Optional
isRecoverable?: booleanIndicates if the error is recoverable.
Base class for all contract-related errors. Provides a structured way to define errors with a code, category, and additional details.