01: /*
02: * FormatException.java March 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: /**
24: * The <code>FormatException</code> is thrown is there was a
25: * problem aquiring contents from a <code>Format</code> object.
26: * The exception is thrown if the <code>Format</code> instance
27: * does not implement support for contents for the requested
28: * resource or if there was a problem generating the contents.
29: *
30: * @author Niall Gallagher
31: */
32: public class FormatException extends Exception {
33:
34: /**
35: * This empty constructor is used if there is no
36: * explanation of the format exception required.
37: */
38: public FormatException() {
39: super ();
40: }
41:
42: /**
43: * This constructor is used if there is a description
44: * of the event that caused the exception required.
45: *
46: * @param desc this is a description of the exception
47: */
48: public FormatException(String desc) {
49: super(desc);
50: }
51: }
|