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:
16: package org.griphyn.vdl.toolkit;
17:
18: /**
19: * This exception is a signal by the invocation record digestor.
20: *
21: * @author Jens-S. Vöckler
22: * @author Yong Zhao
23: * @version $Revision: 50 $
24: *
25: * @see ExitCode
26: */
27: public class FriendlyNudge extends java.lang.RuntimeException {
28: protected int m_result;
29:
30: /**
31: * Constructs a <code>FriendlyNudge</code> with no
32: * detail message.
33: */
34: public FriendlyNudge() {
35: super ();
36: this .m_result = 0;
37: }
38:
39: /**
40: * Constructs a <code>FriendlyNudge</code> with the
41: * specified detailed message.
42: *
43: * @param s is the detailled message.
44: */
45: public FriendlyNudge(String s) {
46: super (s);
47: this .m_result = 0;
48: }
49:
50: /**
51: * Constructs a <code>FriendlyNudge</code> with the
52: * specified detailed message and an exit code to record.
53: *
54: * @param s is the detailled message.
55: * @param e is the exit code to record.
56: */
57: public FriendlyNudge(String s, int e) {
58: super (s);
59: this .m_result = e;
60: }
61:
62: /**
63: * Accessor for the recorded exit code.
64: * @return the exit code that was constructed.
65: */
66: public int getResult() {
67: return this.m_result;
68: }
69: }
|