ccc.api.exceptions
Class UnauthorizedException

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.UnauthorizedException
All Implemented Interfaces:
java.io.Serializable

public class UnauthorizedException
extends CCException

An exception indicating that access to an entity was denied.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ccc.api.exceptions.CCException
MESSAGE
 
Constructor Summary
UnauthorizedException()
          Constructor.
UnauthorizedException(java.util.UUID target, java.util.UUID user)
          Constructor.
 
Method Summary
 java.util.UUID getTarget()
          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

UnauthorizedException

public UnauthorizedException()
Constructor.


UnauthorizedException

public UnauthorizedException(java.util.UUID target,
                             java.util.UUID user)
Constructor.

Parameters:
target - The entity that couldn't be accessed.
user - The user trying to access the entity.
Method Detail

getTarget

public java.util.UUID getTarget()
Accessor.

Returns:
Returns the target.

getUser

public java.util.UUID getUser()
Accessor.

Returns:
Returns the user.


Copyright © 2010. All Rights Reserved.