Package dev.jorel.commandapi.exceptions
Class ConflictingPermissionsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.jorel.commandapi.exceptions.ConflictingPermissionsException
- All Implemented Interfaces:
Serializable
An exception caused when the same permission is registered to a command
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConflictingPermissionsException(String command, CommandPermission currentPermission, CommandPermission conflictingPermission) Creates a ConflictingPermissionsException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConflictingPermissionsException
public ConflictingPermissionsException(String command, CommandPermission currentPermission, CommandPermission conflictingPermission) Creates a ConflictingPermissionsException- Parameters:
command- the command that has conflicting permissionscurrentPermission- the permission that already exists on this commandconflictingPermission- the permission that was tried to be assigned to the command
-