KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > jmi > xmi > DetailedXmiException


1 package org.objectweb.modfact.jmi.xmi;
2
3 import java.io.*;
4
5 public class DetailedXmiException extends javax.jmi.xmi.MalformedXMIException {
6
7   Exception JavaDoc e;
8   
9   DetailedXmiException(Exception JavaDoc cause, String JavaDoc message) {
10     super(message);
11     e = cause;
12   }
13   
14   public Throwable JavaDoc getCause() {
15     return e;
16   }
17   
18   
19   
20   
21   public void printStackTrace(PrintWriter w) {
22     w.println(getMessage());
23     //e.printStackTrace(w);
24
}
25
26   public void printStackTrace(PrintStream s) {
27     s.println(getMessage());
28     //e.printStackTrace(s);
29
}
30   
31   public void printStackTrace() {
32     System.err.println(getMessage());
33     e.printStackTrace();
34   }
35
36 }
37
Popular Tags