Represents an error object with a specific type, optional message, and optional data.
The type of the error.
Optional
The error message.
Additional data associated with the error.
Represents an error object with a specific type, optional message, and optional data.