no.sintef.lock
Class LockedByOtherUserException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byno.sintef.lock.LockException
              extended byno.sintef.lock.LockedByOtherUserException
All Implemented Interfaces:
java.io.Serializable

public class LockedByOtherUserException
extends LockException

Lock target is already locked by other user.

Author:
Fredrik Vraalsen
See Also:
Serialized Form

Constructor Summary
LockedByOtherUserException(java.lang.String lockedBy, java.util.Calendar lockedDate)
           
 
Method Summary
 java.lang.String getLockedBy()
           
 java.util.Calendar getLockedDate()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

LockedByOtherUserException

public LockedByOtherUserException(java.lang.String lockedBy,
                                  java.util.Calendar lockedDate)
Parameters:
lockedBy - user name of user who owns the lock on the target
lockedDate - date when target was locked
Method Detail

getLockedBy

public java.lang.String getLockedBy()
Returns:
the user name of the user who owns the lock on the target

getLockedDate

public java.util.Calendar getLockedDate()
Returns:
the date when the target was locked


Copyright © 2003-2005 SINTEF. All Rights Reserved.