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
Thrown by
PermissionResolver.resolvePermission(String) when the String being parsed is not
valid for that resolver.- Since:
- 0.9
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPermissionStringException(String message, String permissionString) Constructs a new exception with the given message and permission string. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
Constructor Details
-
InvalidPermissionStringException
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.
-