RewriteNoCommandException
class RewriteNoCommandException(val commandBuilder: CommandBuilder, val rewriter: CommandBuilderRewriter, errorMsg: String = "Rewriter[", cause: Throwable? = null) : WowException
Exception thrown when a command builder rewriter fails to return a command.
This exception is raised when a CommandBuilderRewriter's rewrite method returns an empty Mono, indicating that the rewriter could not process the command builder successfully.
Parameters
commandBuilder
the command builder that failed to be rewritten
rewriter
the rewriter that failed to return a command
errorMsg
custom error message (default provided)
cause
the underlying cause of the failure (optional)
See also
Constructors
Link copied to clipboard
constructor(commandBuilder: CommandBuilder, rewriter: CommandBuilderRewriter, errorMsg: String = "Rewriter[", 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.