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 anAccessControlExceptionwith the specified, detailed message.PermissionException(String s, Permission p)Constructs anAccessControlExceptionwith 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 PermissiongetPermission()Gets thePermissionobject associated with this exception, ornullif there was no correspondingPermissionobject.-
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 anAccessControlExceptionwith the specified, detailed message.- Parameters:
s- the detail message.
-
PermissionException
public PermissionException(String s, Permission p)
Constructs anAccessControlExceptionwith 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 thePermissionobject associated with this exception, ornullif there was no correspondingPermissionobject.- Returns:
- the Permission object.
-
-