org.eclipse.jgit.errors
Class LockFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
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
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 |
LockFailedException
public LockFailedException(File file,
String message)
- Construct a CannotLockException for the given file and message
- Parameters:
file
- file that could not be lockedmessage
- exception message
LockFailedException
public LockFailedException(File file)
- Construct a CannotLockException for the given file
- Parameters:
file
- file that could not be locked
getFile
public File getFile()
- Get the file that could not be locked
- Returns:
- file
Copyright © 2013. All Rights Reserved.