DefaultErrorInfo
Represents a default implementation of the ErrorInfo interface, providing a concrete structure for error information. This class includes an error code, an error message, and optionally a list of BindingError instances that can detail errors occurring during data binding processes. It also implements the Materialized interface, indicating it is a fully realized instance of ErrorInfo.
Parameters
The unique identifier for the type of error.
A human-readable message describing the error.
An optional list of BindingError objects, representing additional errors that occurred during the binding process. Defaults to an empty list if not provided.
Functions
Converts the current ErrorInfo instance into a Materialized if it is not already one. If the current instance is of type Materialized, it returns itself. Otherwise, it creates a new DefaultErrorInfo with the current error code, error message, and binding errors.