Class CommandException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ca.stellardrift.permissionsex.minecraft.command.CommandException
-
- All Implemented Interfaces:
Serializable,net.kyori.adventure.util.ComponentMessageThrowable
- Direct Known Subclasses:
CommandPermissionException,PatternParser.PatternParseException
public class CommandException extends RuntimeException implements net.kyori.adventure.util.ComponentMessageThrowable
An exception caused during command execuction.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandException(net.kyori.adventure.text.Component message)CommandException(net.kyori.adventure.text.Component message, @Nullable Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.kyori.adventure.text.ComponentcomponentMessage()StringgetLocalizedMessage()StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CommandException
public CommandException(net.kyori.adventure.text.Component message)
-
CommandException
public CommandException(net.kyori.adventure.text.Component message, @Nullable Throwable cause)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
componentMessage
public net.kyori.adventure.text.Component componentMessage()
- Specified by:
componentMessagein interfacenet.kyori.adventure.util.ComponentMessageThrowable
-
-