public class CommandErrorException extends SendableException
This exception should be used to directly transfer error messages to the CommandActor,
and is always used in command-fail contexts. For exceptions that only reply to the
actor, see SendMessageException.
| Constructor and Description |
|---|
CommandErrorException()
Constructs a new
CommandErrorException that does not send any message. |
CommandErrorException(java.lang.String message,
java.lang.Object... arguments)
Constructs a new
CommandErrorException with an inferred actor |
| Modifier and Type | Method and Description |
|---|---|
void |
sendTo(@NotNull CommandActor actor)
Sends the message to the given actor
|
public CommandErrorException()
CommandErrorException that does not send any message.
Use this constructor if you would like to implement your own messaging
system instead of relying on CommandActor.error(String).
public CommandErrorException(java.lang.String message,
java.lang.Object... arguments)
CommandErrorException with an inferred actormessage - Message to sendpublic void sendTo(@NotNull
@NotNull CommandActor actor)
sendTo in class SendableExceptionactor - Actor to send to