Class SendableException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandErrorException, SendMessageException

public abstract class SendableException extends RuntimeException
Represents an exception that is purely used to send messages directly to the sender. Exceptions of this type are not handled by exception handlers, and instead get their sendTo(CommandActor) method invoked directly.
See Also:
  • Constructor Details

    • SendableException

      public SendableException(String message)
      Constructs a new SendableException with an inferred actor
      Parameters:
      message - Message to send
  • Method Details

    • sendTo

      public abstract void sendTo(@NotNull @NotNull CommandActor actor)
      Sends the message to the given actor
      Parameters:
      actor - Actor to send to