Class PermissionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.dv8tion.jda.api.exceptions.PermissionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HierarchyException, InsufficientPermissionException

public class PermissionException extends RuntimeException
Indicates that the currently logged in account does not meet the specified Permission from getPermission()
See Also:
  • Constructor Details

    • PermissionException

      public PermissionException(String reason)
      Creates a new PermissionException instance
      Parameters:
      reason - The reason for this Exception
  • Method Details