Class LockFailedException

All Implemented Interfaces:
Serializable

public class LockFailedException extends IOException
An exception occurring when a file cannot be locked
See Also:
  • Field Details

  • Constructor Details

    • LockFailedException

      public LockFailedException(File file, String message, Throwable cause)
      Constructor for LockFailedException
      Parameters:
      file - file that could not be locked
      message - exception message
      cause - cause, for later retrieval by Throwable.getCause()
      Since:
      4.1
    • 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 Details

    • getFile

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