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