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)