001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019
020package lucee.commons.io.res.util;
021
022import java.io.IOException;
023
024public final class ResourceNotFoundException extends IOException {
025
026    /**
027     * Constructs a <code>FileNotFoundException</code> with
028     * <code>null</code> as its error detail message.
029     */
030    public ResourceNotFoundException() {
031        super();
032    }
033
034    /**
035     * Constructs a <code>FileNotFoundException</code> with the
036     * specified detail message. The string <code>s</code> can be
037     * retrieved later by the
038     * <code>{@link java.lang.Throwable#getMessage}</code>
039     * method of class <code>java.lang.Throwable</code>.
040     *
041     * @param   s   the detail message.
042     */
043    public ResourceNotFoundException(String s) {
044        super(s);
045    }
046
047    /**
048     * Constructs a <code>FileNotFoundException</code> with a detail message
049     * consisting of the given pathname string followed by the given reason
050     * string.  If the <code>reason</code> argument is <code>null</code> then
051     * it will be omitted.  This private constructor is invoked only by native
052     * I/O methods.
053     *
054*
055     */
056    public ResourceNotFoundException(String path, String reason) {
057        super(path + ((reason == null)
058                      ? ""
059                      : " (" + reason + ")"));
060    }
061
062}