< prev index next >

src/java.base/share/classes/java/nio/file/FileSystemException.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.nio.file;
  27 
  28 import java.io.IOException;
  29 
  30 /**
  31  * Thrown when a file system operation fails on one or two files. This class is
  32  * the general class for file system exceptions.
  33  *
  34  * @since 1.7
  35  */
  36 
  37 public class FileSystemException
  38     extends IOException
  39 {

  40     static final long serialVersionUID = -3055425747967319812L;
  41 
  42     private final String file;
  43     private final String other;
  44 
  45     /**
  46      * Constructs an instance of this class. This constructor should be used
  47      * when an operation involving one file fails and there isn't any additional
  48      * information to explain the reason.
  49      *
  50      * @param   file
  51      *          a string identifying the file or {@code null} if not known.
  52      */
  53     public FileSystemException(String file) {
  54         super((String)null);
  55         this.file = file;
  56         this.other = null;
  57     }
  58 
  59     /**




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.nio.file;
  27 
  28 import java.io.IOException;
  29 
  30 /**
  31  * Thrown when a file system operation fails on one or two files. This class is
  32  * the general class for file system exceptions.
  33  *
  34  * @since 1.7
  35  */
  36 
  37 public class FileSystemException
  38     extends IOException
  39 {
  40     @java.io.Serial
  41     static final long serialVersionUID = -3055425747967319812L;
  42 
  43     private final String file;
  44     private final String other;
  45 
  46     /**
  47      * Constructs an instance of this class. This constructor should be used
  48      * when an operation involving one file fails and there isn't any additional
  49      * information to explain the reason.
  50      *
  51      * @param   file
  52      *          a string identifying the file or {@code null} if not known.
  53      */
  54     public FileSystemException(String file) {
  55         super((String)null);
  56         this.file = file;
  57         this.other = null;
  58     }
  59 
  60     /**


< prev index next >