Class CommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.orbyfied.j8.command.exception.CommandException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommandExecutionException,CommandHaltException,CommandParseException
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommandException(Node rootCommand, String message) CommandException(Node rootCommand, String msg, Throwable e) CommandException(Node rootCommand, Throwable e) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSevere()Determines if it should be printed to the console and handled like a real, severe error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
rootCommand
-
-
Constructor Details
-
CommandException
-
CommandException
-
CommandException
-
-
Method Details
-
isSevere
public boolean isSevere()Determines if it should be printed to the console and handled like a real, severe error.- Returns:
- True/false.
-
getRootCommand
-
getErrorName
-
getFormattedPrefix
-
getFormattedSuffix
-
getFormattedString
-