Top Description Fields Constructors Methods
org.eclipse.jgit.errors

public Class LockFailedException

extends IOException
Class Inheritance
Imports
java.io.File, .IOException, java.text.MessageFormat, org.eclipse.jgit.internal.JGitText

An exception occurring when a file cannot be locked

Field Summary

Modifier and TypeField and Description
private File
private static final long

Constructor Summary

AccessConstructor and Description
public
LockFailedException(File
file that could not be locked
file
,
String
exception message
message
,
Throwable
cause, for later retrieval by java.lang.Throwable#getCause()
cause
)

Constructor for LockFailedException

public
LockFailedException(File
file that could not be locked
file
,
String
exception message
message
)

Construct a CannotLockException for the given file and message

public
LockFailedException(File
file that could not be locked
file
)

Construct a CannotLockException for the given file

Method Summary

Modifier and TypeMethod and Description
public File

Returns:

file
getFile
()

Get the file that could not be locked

Field Detail

fileback to summary
private File file
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Constructor Detail

LockFailedExceptionback to summary
public LockFailedException(File file, String message, Throwable cause)

Constructor for LockFailedException

Parameters
file:File

file that could not be locked

message:String

exception message

cause:Throwable

cause, for later retrieval by java.lang.Throwable#getCause()

Since
4.1
LockFailedExceptionback to summary
public LockFailedException(File file, String message)

Construct a CannotLockException for the given file and message

Parameters
file:File

file that could not be locked

message:String

exception message

LockFailedExceptionback to summary
public LockFailedException(File file)

Construct a CannotLockException for the given file

Parameters
file:File

file that could not be locked

Method Detail

getFileback to summary
public File getFile()

Get the file that could not be locked

Returns:File

file