of
fun of(errorCode: String, errorMsg: String? = null, bindingErrors: List<BindingError> = emptyList()): ErrorInfo
Creates an instance of ErrorInfo with the specified error code, optional error message, and a list of binding errors.
Return
An ErrorInfo instance containing the provided error details.
Parameters
errorCode
The unique identifier for the error.
errorMsg
An optional message that describes the error. Defaults to an empty string if not provided.
bindingErrors
A list of BindingError instances representing errors that occurred during the binding process. Defaults to an empty list if not provided.