CommandResultException
class CommandResultException(val commandResult: CommandResult, cause: Throwable? = null) : WowException, ErrorInfoCapable
Exception wrapping a command result that indicates failure.
This exception is thrown when command processing completes with an error, providing access to the full command result including error details and binding errors.
Parameters
commandResult
the command result containing error information
cause
the underlying cause (optional)
See also
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.