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 SummaryConstructors 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.CommandExceptionshouldIncludeUsage
 - 
Methods inherited from class org.spongepowered.api.util.ComponentMessageExceptioncomponentMessage, getLocalizedMessage, getMessage
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
CommandPermissionExceptionpublic CommandPermissionException(Component message) Create a permissions exception with a custom message.- Parameters:
- message- The message
 
 
- 
 
-