Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.iam.platform.utils.SuperRuntimeException
oracle.iam.platform.authopss.exception.AccessDeniedException
- All Implemented Interfaces:
Serializable
,oracle.iam.platform.utils.io.XmlPrintable
An exception to signal the error condition that the user is not authorized to perform an operation.
Clients should do proactive authorization checks by calls to AuthorizationService and avoid getting
this exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new super exception with null as its detail message.AccessDeniedException
(String message) Constructs a new super exception with the specified detail message.AccessDeniedException
(String errorCode, String errorMessage, Serializable[] errorData, Throwable e) Constructs a new super exception with the specified detail message.AccessDeniedException
(String message, Throwable cause) Constructs a new super exception with the specified detail message and cause.AccessDeniedException
(Throwable cause) Constructs a new super exception with the specified cause. -
Method Summary
Methods inherited from class oracle.iam.platform.utils.SuperRuntimeException
addError, convertErrorData, copyErrorInfo, getErrorCode, getErrorData, getErrors, getLocalizedMessage, getLocalizedMessages, getMessages, hasMultipleErrors, setErrorCode, setErrorData, setErrors, toString, xprint, xprint
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AccessDeniedException
public AccessDeniedException()Constructs a new super exception with null as its detail message. -
AccessDeniedException
Constructs a new super exception with the specified detail message.- Parameters:
message
- the detail message
-
AccessDeniedException
Constructs a new super exception with the specified detail message and cause.- Parameters:
message
- the detail messagecause
- the cause
-
AccessDeniedException
public AccessDeniedException(String errorCode, String errorMessage, Serializable[] errorData, Throwable e) Constructs a new super exception with the specified detail message.- Parameters:
errorCode
-errorMessage
-errorData
-e
-
-
AccessDeniedException
Constructs a new super exception with the specified cause.- Parameters:
cause
- the cause
-