CommandValidationException
constructor(command: Any, errorMsg: String = "Command validation failed.", bindingErrors: List<BindingError> = emptyList(), cause: Throwable? = null)
Parameters
command
the command that failed validation
errorMsg
custom error message (default provided)
bindingErrors
list of validation errors
cause
the underlying cause (optional)