org.eclipse.jgit.errors
Class LockFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.eclipse.jgit.errors.LockFailedException
All Implemented Interfaces:
Serializable

public class LockFailedException
extends IOException

An exception occurring when a file cannot be locked

See Also:
Serialized Form

Constructor Summary
LockFailedException(File file)
          Construct a CannotLockException for the given file
LockFailedException(File file, String message)
          Construct a CannotLockException for the given file and message
 
Method Summary
 File getFile()
          Get the file that could not be locked
 
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

LockFailedException

public LockFailedException(File file,
                           String message)
Construct a CannotLockException for the given file and message

Parameters:
file - file that could not be locked
message - exception message

LockFailedException

public LockFailedException(File file)
Construct a CannotLockException for the given file

Parameters:
file - file that could not be locked
Method Detail

getFile

public File getFile()
Get the file that could not be locked

Returns:
file


Copyright © 2012. All Rights Reserved.