Home | History | Annotate | Download | only in fs
      1 /*
      2  * Copyright (C) 2009,2010 Matthias Treydte <mt (at) waldheinz.de>
      3  *
      4  * This library is free software; you can redistribute it and/or modify it
      5  * under the terms of the GNU Lesser General Public License as published
      6  * by the Free Software Foundation; either version 2.1 of the License, or
      7  * (at your option) any later version.
      8  *
      9  * This library is distributed in the hope that it will be useful, but
     10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
     12  * License for more details.
     13  *
     14  * You should have received a copy of the GNU Lesser General Public License
     15  * along with this library; If not, write to the Free Software Foundation, Inc.,
     16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
     17  */
     18 
     19 package de.waldheinz.fs;
     20 
     21 import java.io.IOException;
     22 
     23 /**
     24  * Indicates that it was not possible to determine the type of the file
     25  * system being used on a block device.
     26  *
     27  * @author Matthias Treydte &lt;waldheinz at gmail.com&gt;
     28  */
     29 public final class UnknownFileSystemException extends IOException {
     30     private final static long serialVersionUID = 1;
     31 
     32     private final BlockDevice device;
     33 
     34     /**
     35      * Creates a new instance of {@code UnknownFileSystemException}.
     36      *
     37      * @param device the {@code BlockDevice} whose file system could not
     38      *      be determined
     39      */
     40     public UnknownFileSystemException(BlockDevice device) {
     41         super("can not determin file system type"); //NOI18N
     42         this.device = device;
     43     }
     44 
     45     /**
     46      * Returns the {@code BlockDevice} whose file system could not be
     47      * determined.
     48      *
     49      * @return the {@code BlockDevice} with an unknown file system
     50      */
     51     public BlockDevice getDevice() {
     52         return this.device;
     53     }
     54 }
     55