Class CommandPermissionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.spongepowered.api.util.ComponentMessageException
-
- org.spongepowered.api.command.exception.CommandException
-
- org.spongepowered.api.command.exception.CommandPermissionException
-
- All Implemented Interfaces:
Serializable
,ComponentMessageThrowable
public class CommandPermissionException extends CommandException
This exception is thrown when a subject does not have permission to execute a command.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandPermissionException(Component message)
Create a permissions exception with a custom message.CommandPermissionException(Component message, Throwable cause)
Create a permissions exception with a custom message and cause.
-
Method Summary
-
Methods inherited from class org.spongepowered.api.command.exception.CommandException
shouldIncludeUsage
-
Methods inherited from class org.spongepowered.api.util.ComponentMessageException
componentMessage, getLocalizedMessage, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CommandPermissionException
public CommandPermissionException(Component message)
Create a permissions exception with a custom message.- Parameters:
message
- The message
-
-