Package revxrsal.commands.exception
Class SendableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
revxrsal.commands.exception.SendableException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommandErrorException
,SendMessageException
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 Summary
ConstructorDescriptionSendableException
(String message) Constructs a newSendableException
with an inferred actor -
Method Summary
Modifier and TypeMethodDescriptionabstract void
sendTo
(@NotNull CommandActor actor) Sends the message to the given actorMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SendableException
Constructs a newSendableException
with an inferred actor- Parameters:
message
- Message to send
-
-
Method Details
-
sendTo
Sends the message to the given actor- Parameters:
actor
- Actor to send to
-