001 002 package railo.commons.io.res.util; 003 004 import java.io.IOException; 005 006 public final class ResourceNotFoundException extends IOException { 007 008 /** 009 * Constructs a <code>FileNotFoundException</code> with 010 * <code>null</code> as its error detail message. 011 */ 012 public ResourceNotFoundException() { 013 super(); 014 } 015 016 /** 017 * Constructs a <code>FileNotFoundException</code> with the 018 * specified detail message. The string <code>s</code> can be 019 * retrieved later by the 020 * <code>{@link java.lang.Throwable#getMessage}</code> 021 * method of class <code>java.lang.Throwable</code>. 022 * 023 * @param s the detail message. 024 */ 025 public ResourceNotFoundException(String s) { 026 super(s); 027 } 028 029 /** 030 * Constructs a <code>FileNotFoundException</code> with a detail message 031 * consisting of the given pathname string followed by the given reason 032 * string. If the <code>reason</code> argument is <code>null</code> then 033 * it will be omitted. This private constructor is invoked only by native 034 * I/O methods. 035 * 036 * 037 */ 038 public ResourceNotFoundException(String path, String reason) { 039 super(path + ((reason == null) 040 ? "" 041 : " (" + reason + ")")); 042 } 043 044 }