CommandValidationException
class CommandValidationException(val command: Any, errorMsg: String = "Command validation failed.", bindingErrors: List<BindingError> = emptyList(), cause: Throwable? = null) : WowException, ErrorInfo
Exception thrown when command validation fails.
This exception contains validation errors that occurred during command processing, including constraint violations and binding errors.
Parameters
command
the command that failed validation
errorMsg
custom error message (default provided)
bindingErrors
list of validation errors
cause
the underlying cause (optional)
See also
Constructors
Link copied to clipboard
constructor(command: Any, errorMsg: String = "Command validation failed.", bindingErrors: List<BindingError> = emptyList(), cause: Throwable? = null)
Properties
Functions
Link copied to clipboard
Converts this Throwable to standardized ErrorInfo.
Link copied to clipboard
fun Throwable.toResult(waitCommandId: String, commandMessage: CommandMessage<*>, function: FunctionInfoData = COMMAND_GATEWAY_FUNCTION, id: String = generateGlobalId(), stage: CommandStage = CommandStage.SENT, result: Map<String, Any> = emptyMap(), signalTime: Long = System.currentTimeMillis()): CommandResult
Converts a Throwable to a CommandResult representing a command failure.