01: /*
02: * LocateException.java February 2004
03: *
04: * Copyright (C) 2004, Niall Gallagher <niallg@users.sf.net>
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General
16: * Public License along with this library; if not, write to the
17: * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18: * Boston, MA 02111-1307 USA
19: */
20:
21: package simple.http.serve;
22:
23: import java.io.IOException;
24:
25: /**
26: * The <code>LocateException</code> is thrown when the discovery
27: * of a resource by a <code>Locator</code> fails. This is used to
28: * indicate that either the resource could not be found or that
29: * it was found and its contents are not accessible.
30: *
31: * @author Niall Gallagher
32: */
33: public class LocateException extends IOException {
34:
35: /**
36: * This empty constructor is used if there is no
37: * explanation of the locating exception required.
38: */
39: public LocateException() {
40: super ();
41: }
42:
43: /**
44: * This constructor is used if there is a description
45: * of the event that caused the exception required.
46: *
47: * @param desc this is a description of the exception
48: */
49: public LocateException(String desc) {
50: super(desc);
51: }
52: }
|