public class CommandException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.ImmutableList<Command> |
commands |
Constructor and Description |
---|
CommandException(net.kyori.text.Component message,
com.google.common.collect.ImmutableList<Command> commands) |
CommandException(net.kyori.text.Component message,
java.lang.Throwable cause,
com.google.common.collect.ImmutableList<Command> commands) |
CommandException(com.google.common.collect.ImmutableList<Command> commands) |
CommandException(java.lang.Throwable cause,
com.google.common.collect.ImmutableList<Command> commands) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<Command> |
getCommands()
Retrieves all commands associated with this exception.
|
net.kyori.text.Component |
getRichMessage()
Get the rich message, with extra formatting.
|
protected final com.google.common.collect.ImmutableList<Command> commands
public CommandException(com.google.common.collect.ImmutableList<Command> commands)
public CommandException(net.kyori.text.Component message, com.google.common.collect.ImmutableList<Command> commands)
public CommandException(net.kyori.text.Component message, java.lang.Throwable cause, com.google.common.collect.ImmutableList<Command> commands)
public CommandException(java.lang.Throwable cause, com.google.common.collect.ImmutableList<Command> commands)
public net.kyori.text.Component getRichMessage()
public com.google.common.collect.ImmutableList<Command> getCommands()
This is intended to capture the parent command context upon exceptional state.