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: */
15: package org.griphyn.vdl.classes;
16:
17: /**
18: * This exception is thrown if the matching between the linkage of a
19: * declared variable and the combined linkage of a used variable in a
20: * transformation have incompatible values. An example for such an
21: * incompatability is having declared a variable of type input, but
22: * using it as ouput. The exception will also be thrown, if multiple
23: * usages of a bound variable use incompatible linkages, e.g. the same
24: * variable is used with linkage NONE in one instance, and with any other
25: * linkage in the same transformation at another place.<p>
26: *
27: * A method is not required to declare in its throws clause any
28: * subclasses of RuntimeException that might be thrown during the
29: * execution of the method but not caught.
30: *
31: * @author Jens-S. Vöckler
32: * @author Yong Zhao
33: * @version $Revision: 50 $
34: *
35: * @see Derivation
36: * @see Transformation
37: */
38: public class IncompatibleLinkageException extends
39: java.lang.RuntimeException {
40: /**
41: * Constructs a <code>IncompatibleLinkageException</code> with no
42: * detail message.
43: */
44: public IncompatibleLinkageException() {
45: super ();
46: }
47:
48: /**
49: * Constructs a <code>IncompatibleLinkageException</code> with the
50: * specified detailed message.
51: *
52: * @param s is the detailled message.
53: */
54: public IncompatibleLinkageException(String s) {
55: super(s);
56: }
57: }
|