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
This exception is thrown when a subject does not have permission to execute
a command.
- See Also:
-
Constructor Summary
ConstructorDescriptionCommandPermissionException
(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 Details
-
CommandPermissionException
Create a permissions exception with a custom message.- Parameters:
message
- The message
-
CommandPermissionException
Create a permissions exception with a custom message and cause.- Parameters:
message
- the messagecause
- the cause
-