ccc.api.exceptions
Class UnauthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ccc.api.exceptions.CCException
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
Method Summary |
java.util.UUID |
getTarget()
Accessor. |
java.util.UUID |
getUser()
Accessor. |
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 |
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.
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.