Package 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
An exception occurring when a file cannot be locked
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLockFailedException
(File file) Construct a CannotLockException for the given fileLockFailedException
(File file, String message) Construct a CannotLockException for the given file and messageLockFailedException
(File file, String message, Throwable cause) Constructor for LockFailedException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
file
-
-
Constructor Details
-
LockFailedException
Constructor for LockFailedException- Parameters:
file
- file that could not be lockedmessage
- exception messagecause
- cause, for later retrieval byThrowable.getCause()
- Since:
- 4.1
-
LockFailedException
Construct a CannotLockException for the given file and message- Parameters:
file
- file that could not be lockedmessage
- exception message
-
LockFailedException
Construct a CannotLockException for the given file- Parameters:
file
- file that could not be locked
-
-
Method Details
-
getFile
Get the file that could not be locked- Returns:
- file
-