org.apache.shiro.authz.permission
Class InvalidPermissionStringException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.shiro.ShiroException
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
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 |
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.
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.