Class CommandExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.ua.theroer.magicutils.commands.CommandExecutionException
- All Implemented Interfaces:
Serializable
Signals that a command failed with an unexpected runtime error.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommandExecutionException(String userMessage, Throwable cause) Creates a new execution exception with a user-facing message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message intended for the command sender.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandExecutionException
-
-
Method Details
-
getUserMessage
Returns the message intended for the command sender.- Returns:
- user-facing error message
-