Package com.tangosol.net.security
Class PermissionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.SecurityException
-
- com.tangosol.net.security.PermissionException
-
- All Implemented Interfaces:
Serializable
public class PermissionException extends SecurityException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionException(String s)
Constructs anAccessControlException
with the specified, detailed message.PermissionException(String s, Permission p)
Constructs anAccessControlException
with the specified, detailed message, and the requested permission that caused the exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Permission
getPermission()
Gets thePermission
object associated with this exception, ornull
if there was no correspondingPermission
object.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PermissionException
public PermissionException(String s)
Constructs anAccessControlException
with the specified, detailed message.- Parameters:
s
- the detail message.
-
PermissionException
public PermissionException(String s, Permission p)
Constructs anAccessControlException
with the specified, detailed message, and the requested permission that caused the exception.- Parameters:
s
- the detail message.p
- the permission that caused the exception.
-
-
Method Detail
-
getPermission
public Permission getPermission()
Gets thePermission
object associated with this exception, ornull
if there was no correspondingPermission
object.- Returns:
- the Permission object.
-
-