org.sakaiproject.exception
Class PermissionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.sakaiproject.exception.PermissionException
All Implemented Interfaces:
Serializable

public class PermissionException
extends Exception

PermissionException indicates an invalid unlock attempt by a user for a lock and a resource.

Version:
$Revision: 2451 $
Author:
University of Michigan, Sakai Software Development Team
See Also:
Serialized Form

Constructor Summary
PermissionException(String lock, String resource)
          Construct, using the current session's user id
PermissionException(String user, String lock, String resource)
          Construct.
 
Method Summary
 String getLock()
          Access the lock name.
 String getResource()
          Access the resource id.
 String getUser()
          Access the id of the user.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionException

public PermissionException(String user,
                           String lock,
                           String resource)
Construct.

Parameters:
user - The id of the user.
lock - The lock name.
resource - The resource id.

PermissionException

public PermissionException(String lock,
                           String resource)
Construct, using the current session's user id

Parameters:
lock - The lock name.
resource - The resource id.
Method Detail

getUser

public String getUser()
Access the id of the user.

Returns:
The id of the user.

getLock

public String getLock()
Access the lock name.

Returns:
The lock name.

getResource

public String getResource()
Access the resource id.

Returns:
The resource id.

toString

public String toString()