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:
java.io.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, java.lang.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
-
-
-
-
Constructor Detail
-
CommandPermissionException
public CommandPermissionException(Component message)
Create a permissions exception with a custom message.- Parameters:
message
- The message
-
CommandPermissionException
public CommandPermissionException(Component message, java.lang.Throwable cause)
Create a permissions exception with a custom message and cause.- Parameters:
message
- the messagecause
- the cause
-
-