DefaultErrorInfo
data class DefaultErrorInfo(val errorCode: String, val errorMsg: String = "", val bindingErrors: List<BindingError> = emptyList()) : ErrorInfo, Materialized
Default implementation of the ErrorInfo interface.
This data class provides a concrete, serializable implementation of error information that can be used directly in API responses, logging, and error handling. It implements Materialized to ensure it can be properly serialized in JSON responses and stored in databases.
See also
for the interface definition
for convenient factory method
Samples
Constructors
Link copied to clipboard
constructor(errorCode: String, errorMsg: String = "", bindingErrors: List<BindingError> = emptyList())