ccc.api.exceptions
Class InsufficientPrivilegesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ccc.api.exceptions.CCException
                  extended by ccc.api.exceptions.InsufficientPrivilegesException
All Implemented Interfaces:
java.io.Serializable

public class InsufficientPrivilegesException
extends CCException

This exception indicates that a user attempted to perform an operation without sufficient privileges.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ccc.api.exceptions.CCException
MESSAGE
 
Constructor Summary
InsufficientPrivilegesException()
          Constructor.
InsufficientPrivilegesException(CommandType action, java.util.UUID user)
          Constructor.
 
Method Summary
 CommandType getAction()
          Accessor.
 java.util.UUID getUser()
          Accessor.
 
Methods inherited from class ccc.api.exceptions.CCException
addParam, getFailure, getMessage, getParam, setId, setParams
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsufficientPrivilegesException

public InsufficientPrivilegesException()
Constructor.


InsufficientPrivilegesException

public InsufficientPrivilegesException(CommandType action,
                                       java.util.UUID user)
Constructor.

Parameters:
action - The action that was disallowed.
user - The user attempting to perform the action.
Method Detail

getAction

public CommandType getAction()
Accessor.

Returns:
Returns the action.

getUser

public java.util.UUID getUser()
Accessor.

Returns:
Returns the user.


Copyright © 2010. All Rights Reserved.