Class NoPermissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.CommandParseException
cloud.commandframework.exceptions.NoPermissionException
- All Implemented Interfaces:
Serializable
Exception thrown when a command sender misses a permission required
to execute a
Command
- See Also:
-
Constructor Summary
ConstructorDescriptionNoPermissionException
(@NonNull CommandPermission missingPermission, @NonNull Object commandSender, @NonNull List<@NonNull CommandArgument<?, ?>> currentChain) Construct a new no permission exception -
Method Summary
Methods inherited from class cloud.commandframework.exceptions.CommandParseException
getCommandSender, getCurrentChain
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoPermissionException
@API(status=INTERNAL, consumers="cloud.commandframework.*") public NoPermissionException(@NonNull CommandPermission missingPermission, @NonNull Object commandSender, @NonNull List<@NonNull CommandArgument<?, ?>> currentChain) Construct a new no permission exception- Parameters:
missingPermission
- Missing permission nodecommandSender
- Command sendercurrentChain
- Chain leading up to the exception
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getMissingPermission
Get the missing permission node- Returns:
- Get the missing permission node
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-
initCause
-