public final class RejectedAccessException extends SecurityException
Constructor and Description |
---|
RejectedAccessException(String message)
Rejects access to something which the current
StaticWhitelist format could not describe. |
RejectedAccessException(String type,
String details)
Rejects access to a well-described script element.
|
RejectedAccessException(String type,
String details,
String info)
Rejects access to a well-described script element.
|
Modifier and Type | Method and Description |
---|---|
String |
getSignature()
Gets the signature of the member to which access was rejected.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RejectedAccessException(String type, String details)
StaticWhitelist.rejectMethod(java.lang.reflect.Method)
or similar.type
- e.g. field
details
- e.g. some.Class fieldName
public RejectedAccessException(String type, String details, String info)
StaticWhitelist.rejectMethod(java.lang.reflect.Method)
or similar.type
- e.g. field
details
- e.g. some.Class fieldName
info
- some additional information if appropriatepublic RejectedAccessException(String message)
StaticWhitelist
format could not describe.message
- a descriptive message in no particular format@CheckForNull public String getSignature()
StaticWhitelist
, or null in case something was rejected for which a known exemption is not availableCopyright © 2015. All rights reserved.