Package wt.access
Class NotAuthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
wt.util.WTException
wt.access.AccessControlException
wt.access.NotAuthorizedException
- All Implemented Interfaces:
Serializable,LocalizableMessage,Message
Thrown in situations where a user lacks sufficient access rights to carry
out an action on a specific object or some other type of authorization
error occurs.
Whenever the exception results in a failure of the user action, an
AccessControlEvent.NOT_AUTHORIZED audit event must also
be emitted.
Supported API: true
Extendable: false
-
Constructor Summary
ConstructorsConstructorDescriptionNo argument constructor.Constructor that takes an exception as an argument.NotAuthorizedException(Exception e, String msg) Constructor that takes a non-localized message and an exception as arguments.NotAuthorizedException(Exception e, String rb, String key, Object[] params) Constructor that takes an exception, a resource bundle, a key and additional parameters to use in the localized message as arguments.Constructor that takes a non-localized message as an argument. -
Method Summary
Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, getWTMessage, printStackTrace, printStackTrace, printStackTrace, toString, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Constructor Details
-
NotAuthorizedException
public NotAuthorizedException()No argument constructor.
Supported API: true -
NotAuthorizedException
Constructor that takes a non-localized message as an argument.
Supported API: true- Parameters:
msg- non-localized message
-
NotAuthorizedException
Constructor that takes an exception as an argument. The exception can be retrieved using the getNestedException method.
Supported API: true- Parameters:
e- exception
-
NotAuthorizedException
Constructor that takes a non-localized message and an exception as arguments.
Supported API: true- Parameters:
e- exceptionmsg- non-localized message
-
NotAuthorizedException
Constructor that takes an exception, a resource bundle, a key and additional parameters to use in the localized message as arguments.
Supported API: true- Parameters:
e- exceptionrb- resource bundle namekey- resource bundle keyparams- parameters to use in the localized message
-