001 /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil -*-
002 *
003 * $Id$
004 *
005 * Copyright (c) 2010-2011 Edugility LLC.
006 *
007 * Permission is hereby granted, free of charge, to any person
008 * obtaining a copy of this software and associated documentation
009 * files (the "Software"), to deal in the Software without
010 * restriction, including without limitation the rights to use, copy,
011 * modify, merge, publish, distribute, sublicense and/or sell copies
012 * of the Software, and to permit persons to whom the Software is
013 * furnished to do so, subject to the following conditions:
014 *
015 * The above copyright notice and this permission notice shall be
016 * included in all copies or substantial portions of the Software.
017 *
018 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
019 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
020 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
021 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
022 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
023 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
024 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
025 * DEALINGS IN THE SOFTWARE.
026 *
027 * The original copy of this license is available at
028 * http://www.opensource.org/license/mit-license.html.
029 */
030 package com.edugility.jpa.maven.plugin;
031
032 import java.io.File;
033
034 /**
035 * A {@link DirectoryException} indicating that the {@link File} in
036 * question had a path that should have been fully created by the
037 * {@link File#mkdirs()} method, but that this path creation failed.
038 *
039 * @author <a href="mailto:ljnelson@gmail.com">Laird Nelson</a>
040 *
041 * @version 1.0-SNAPSHOT
042 *
043 * @since 1.0-SNAPSHOT
044 */
045 public class PathCreationFailedException extends DirectoryException {
046
047 /**
048 * A serial version identifier uniquely identifying the version of
049 * this class. See the <a
050 * href="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html">documentation
051 * for the {@code Serializable} class</a> for details.
052 */
053 private static final long serialVersionUID = 1L;
054
055 /**
056 * Creates a new {@link PathCreationFailedException}.
057 *
058 * @param file the {@link File} in question whose path could not be
059 * created; may be {@code null}
060 */
061 public PathCreationFailedException(final File file) {
062 super(file);
063 }
064
065 }