The error message.
Optionaloptions: {Additional options for the error.
Optionalcategory?: ErrorCategoryThe category of the error.
Optionalcode?: stringA specific error code.
Optionaldetails?: Record<string, any>Additional details about the error.
OptionalisRecoverable?: 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.