001 /**
002 * $Id: DirNotFoundException.java,v 1.3 2010/09/06 09:19:11 oboehm Exp $
003 *
004 * Copyright (c) 2009 by Oliver Boehm
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 *
018 * (c)reated 10.06.2009 by oliver (ob@aosd.de)
019 */
020 package patterntesting.exception.io;
021
022 import java.io.FileNotFoundException;
023
024 /**
025 * Not every FileNotFoundException is a FileNotFoundException. Sometimes a
026 * FileNotFoundException is thrown if the parent directory does not exist.
027 * For this case you can now use this exception.
028 *
029 * @author <a href="boehm@javatux.de">oliver</a>
030 * @since 10.06.2009
031 * @version $Revision: 1.3 $
032 * @see FileNotFoundException
033 */
034 public class DirNotFoundException extends FileNotFoundException {
035
036 private static final long serialVersionUID = 20090610L;
037
038 /**
039 * The default constructor. You should should better use
040 * {@link DirNotFoundException#DirNotFoundException(String)}
041 */
042 public DirNotFoundException() {
043 super();
044 }
045
046 /**
047 * @param msg
048 * the message given more information why the directory can't be
049 * found.
050 */
051 public DirNotFoundException(final String msg) {
052 super(msg);
053 }
054
055 }