01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.common.tagging;
09:
10: //base classes
11: import java.io.PrintStream;
12: import java.io.PrintWriter;
13:
14: //project specific classes
15:
16: //other classes
17:
18: public class DetermineClassConceptTagException extends Exception {
19:
20: private Exception exception;
21: private String message;
22:
23: public DetermineClassConceptTagException(String inMessage) {
24: //
25: super (inMessage);
26: //
27: this .message = inMessage;
28: }
29:
30: public DetermineClassConceptTagException(String inMessage,
31: Exception inException) {
32: //
33: super (inMessage, inException);
34: //
35: this .message = inMessage;
36: this .exception = inException;
37: }
38:
39: public DetermineClassConceptTagException(Exception inException) {
40: //
41: super (inException);
42: //
43: this .exception = inException;
44: }
45: /*
46: public String getMessage() {
47:
48: StringBuffer outValue = new StringBuffer();
49:
50: //
51: if (this.message != null) {
52: outValue.append(this.message);
53: }
54: //
55: if (this.exception != null) {
56: outValue.append(" (");
57: outValue.append(this.exception.getMessage());
58: outValue.append(")");
59: //outValue = outValue + + + ;
60: }
61:
62: return outValue.toString();
63: }
64:
65: public void printStackTrace() {
66: super.printStackTrace();
67: if (this.exception != null) {
68: this.exception.printStackTrace();
69: }
70: }
71:
72: public void printStackTrace(PrintStream inPs) {
73: super.printStackTrace(inPs);
74: if (this.exception != null) {
75: this.exception.printStackTrace(inPs);
76: }
77: }
78:
79: public void printStackTrace(PrintWriter inPs) {
80: super.printStackTrace(inPs);
81: if (this.exception != null) {
82: this.exception.printStackTrace(inPs);
83: }
84: }
85: //
86: public StackTraceElement[] getStackTrace() {
87:
88: StackTraceElement outValue[] = super.getStackTrace();
89:
90: return outValue;
91: }
92: */
93: }
|