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 org.apache.shiro.ShiroException
Thrown byPermissionResolver.resolvePermission(String)
when the String being parsed is not valid for that resolver.- Since:
- 0.9
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidPermissionStringException(String message, String permissionString)
Constructs a new exception with the given message and permission string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPermissionString()
Returns the permission string that was invalid and caused this exception to be thrown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getPermissionString
public String getPermissionString()
Returns the permission string that was invalid and caused this exception to be thrown.- Returns:
- the permission string.
-
-