01: /*
02: ** Copyright (c) 1998 by Timothy Gerard Endres
03: ** <mailto:time@ice.com> <http://www.ice.com>
04: **
05: ** This program is free software.
06: **
07: ** You may redistribute it and/or modify it under the terms of the GNU
08: ** General Public License as published by the Free Software Foundation.
09: ** Version 2 of the license should be included with this distribution in
10: ** the file LICENSE, as well as License.html. If the license is not
11: ** included with this distribution, you may find a copy at the FSF web
12: ** site at 'www.gnu.org' or 'www.fsf.org', or you may write to the
13: ** Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139 USA.
14: **
15: ** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,
16: ** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR
17: ** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY
18: ** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR
19: ** REDISTRIBUTION OF THIS SOFTWARE.
20: **
21: */
22:
23: package com.ice.util;
24:
25: public class ExecException extends Exception {
26: private int exitValue;
27:
28: public ExecException() {
29: super ();
30: this .exitValue = 0;
31: }
32:
33: public ExecException(String msg) {
34: this (msg, 0);
35: }
36:
37: public ExecException(String msg, int exitValue) {
38: super (msg);
39: this .exitValue = exitValue;
40: }
41:
42: public String getMessage() {
43: return super .getMessage() + " Exit Value = " + this.exitValue;
44: }
45: }
|