01: /*
02: Copyright 2001 Nicholas Allen (nallen@freenet.co.uk)
03: This file is part of JavaCVS.
04: JavaCVS is free software; you can redistribute it and/or modify
05: it under the terms of the GNU General Public License as published by
06: the Free Software Foundation; either version 2 of the License, or
07: (at your option) any later version.
08: JavaCVS is distributed in the hope that it will be useful,
09: but WITHOUT ANY WARRANTY; without even the implied warranty of
10: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: GNU General Public License for more details.
12: You should have received a copy of the GNU General Public License
13: along with JavaCVS; if not, write to the Free Software
14: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15: */
16: package allensoft.diff;
17:
18: /**
19: * DOCUMENT ME!
20: *
21: * @author $author$
22: */
23: public class DiffException extends Exception {
24: private Exception m_Nested;
25:
26: /**
27: * Creates a new DiffException object.
28: *
29: * @param sMessage DOCUMENT ME!
30: */
31: public DiffException(String sMessage) {
32: super (sMessage);
33: }
34:
35: /**
36: * Creates a new DiffException object.
37: *
38: * @param sMessage DOCUMENT ME!
39: * @param nested DOCUMENT ME!
40: */
41: public DiffException(String sMessage, Exception nested) {
42: this (sMessage + " " + nested);
43: m_Nested = nested;
44: }
45:
46: /**
47: * DOCUMENT ME!
48: *
49: * @return DOCUMENT ME!
50: */
51: public Exception getNestedException() {
52: return m_Nested;
53: }
54: }
|