Class SendMessageException

All Implemented Interfaces:
Serializable

public class SendMessageException extends SendableException
Used to directly send-and-return a message to the command actor.

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.

See Also:
  • Constructor Details

    • SendMessageException

      public SendMessageException(String message, Object... arguments)
      Constructs a new SendMessageException with an inferred actor
      Parameters:
      message - Message to send
  • Method Details

    • sendTo

      public void sendTo(@NotNull @NotNull CommandActor actor)
      Sends the message to the given actor
      Specified by:
      sendTo in class SendableException
      Parameters:
      actor - Actor to send to