01: /**
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */package org.griphyn.cPlanner.code;
15:
16: /**
17: * The baseclass of the exception that is thrown by all Code Generators.
18: * It is a checked exception.
19: *
20: * @author Karan Vahi
21: * @version $Revision: 50 $
22: */
23:
24: public class CodeGeneratorException extends Exception {
25:
26: /**
27: * Constructs a <code>CodeGeneratorException</code> with no detail
28: * message.
29: */
30: public CodeGeneratorException() {
31: super ();
32: }
33:
34: /**
35: * Constructs a <code>CodeGeneratorException</code> with the specified detailed
36: * message.
37: *
38: * @param message is the detailled message.
39: */
40: public CodeGeneratorException(String message) {
41: super (message);
42: }
43:
44: /**
45: * Constructs a <code>CodeGeneratorException</code> with the specified detailed
46: * message and a cause.
47: *
48: * @param message is the detailled message.
49: * @param cause is the cause (which is saved for later retrieval by the
50: * {@link java.lang.Throwable#getCause()} method). A <code>null</code>
51: * value is permitted, and indicates that the cause is nonexistent or
52: * unknown.
53: */
54: public CodeGeneratorException(String message, Throwable cause) {
55: super (message, cause);
56: }
57:
58: /**
59: * Constructs a <code>CodeGeneratorException</code> with the
60: * specified just a cause.
61: *
62: * @param cause is the cause (which is saved for later retrieval by the
63: * {@link java.lang.Throwable#getCause()} method). A <code>null</code>
64: * value is permitted, and indicates that the cause is nonexistent or
65: * unknown.
66: */
67: public CodeGeneratorException(Throwable cause) {
68: super(cause);
69: }
70:
71: }
|