Class InvalidPermissionStringException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.shiro.lang.ShiroException
org.apache.shiro.authz.permission.InvalidPermissionStringException
All Implemented Interfaces:
Serializable

public class InvalidPermissionStringException extends org.apache.shiro.lang.ShiroException
Thrown by PermissionResolver.resolvePermission(String) when the String being parsed is not valid for that resolver.
Since:
0.9
See Also:
  • Constructor Details

    • InvalidPermissionStringException

      public InvalidPermissionStringException(String message, String permissionString)
      Constructs a new exception with the given message and permission string.
      Parameters:
      message - the exception message.
      permissionString - the invalid permission string.
  • Method Details

    • getPermissionString

      Returns the permission string that was invalid and caused this exception to be thrown.
      Returns:
      the permission string.