01: /*
02: * ContentException.java December 2002
03: *
04: * Copyright (C) 2002, 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>ContentException</code> is thrown when the content
27: * factory cannot produce a suitable <code>Content</code> for
28: * an issued request URI. The <code>ContentFactory</code> throws
29: * this from the <code>getContent</code> method.
30: *
31: * @author Niall Gallagher
32: */
33: public class ContentException extends IOException {
34:
35: /**
36: * This empty constructor is used if there is no
37: * explanation of the loading exception required.
38: */
39: public ContentException() {
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 ContentException(String desc) {
50: super(desc);
51: }
52: }
|