wt.access
Class NotAuthorizedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by wt.util.WTException
              extended by wt.access.AccessControlException
                  extended by wt.access.NotAuthorizedException
All Implemented Interfaces:
Serializable, LocalizableMessage, Message

public class NotAuthorizedException
extends AccessControlException
implements Serializable

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

See Also:
AccessControlEvent#NOT_AUTHORIZED, AccessControlManager.emitAccessEvent(String, Object, AccessPermission, WTMessage), AccessControlServerHelper.disableNotAuthorizedAudit(), AccessControlServerHelper.reenableNotAuthorizedAudit(), Serialized Form

Constructor Summary
NotAuthorizedException()
          No argument constructor.
NotAuthorizedException(Exception e)
          Constructor that takes an execption as argument.
NotAuthorizedException(Exception e, String msg)
          Constructor that takes a non-localized message and an exeption as argument.
NotAuthorizedException(Exception e, String rb, String key, Object[] params)
          Constructor that takes and exception, a resource bundle, a key and additional parameters to use in the localized message.
NotAuthorizedException(String msg)
          Constructor that takes a non-localized message as argument.
 
Method Summary
 
Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, printStackTrace, printStackTrace, printStackTrace, setLocalizedMessage, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotAuthorizedException

public NotAuthorizedException()
No argument constructor.

Supported API: true


NotAuthorizedException

public NotAuthorizedException(String msg)
Constructor that takes a non-localized message as argument.

Supported API: true

Parameters:
msg -

NotAuthorizedException

public NotAuthorizedException(Exception e)
Constructor that takes an execption as argument. Exception can be retrieved using getNestedException method.

Supported API: true

Parameters:
e -

NotAuthorizedException

public NotAuthorizedException(Exception e,
                              String msg)
Constructor that takes a non-localized message and an exeption as argument.

Supported API: true

Parameters:
e -
msg -

NotAuthorizedException

public NotAuthorizedException(Exception e,
                              String rb,
                              String key,
                              Object[] params)
Constructor that takes and exception, a resource bundle, a key and additional parameters to use in the localized message.

Supported API: true

Parameters:
e -
rb -
key -
params -