Class LockFailedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class LockFailedException
    extends java.io.IOException
    An exception occurring when a file cannot be locked
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File file  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      LockFailedException​(java.io.File file)
      Construct a CannotLockException for the given file
      LockFailedException​(java.io.File file, java.lang.String message)
      Construct a CannotLockException for the given file and message
      LockFailedException​(java.io.File file, java.lang.String message, java.lang.Throwable cause)
      Constructor for LockFailedException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getFile()
      Get the file that could not be locked
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • file

        private java.io.File file
    • Constructor Detail

      • LockFailedException

        public LockFailedException​(java.io.File file,
                                   java.lang.String message,
                                   java.lang.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​(java.io.File file,
                                   java.lang.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​(java.io.File file)
        Construct a CannotLockException for the given file
        Parameters:
        file - file that could not be locked
    • Method Detail

      • getFile

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