org.apache.shiro.authz.permission
Class InvalidPermissionStringException

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

public class InvalidPermissionStringException
extends ShiroException

Thrown by PermissionResolver.resolvePermission(String) when the String being parsed is not valid for that resolver.

Since:
0.9
See Also:
Serialized Form

Constructor Summary
InvalidPermissionStringException(String message, String permissionString)
          Constructs a new exception with the given message and permission string.
 
Method Summary
 String getPermissionString()
          Returns the permission string that was invalid and caused this exception to be thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getPermissionString

public String getPermissionString()
Returns the permission string that was invalid and caused this exception to be thrown.

Returns:
the permission string.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.