1 8 9 package org.uddi4j.transport; 10 11 19 public class TransportException extends Exception { 20 Exception nativeException = null; 21 22 25 public TransportException() { 26 super(); 27 } 28 29 34 public TransportException(String s) { 35 super(s); 36 } 37 38 44 public TransportException(Exception e) { 45 super(e.getMessage()); 46 nativeException = e; 47 } 48 49 55 public Exception getException() { 56 return nativeException; 57 } 58 59 60 64 public void printStackTrace() { 65 printStackTrace(System.err); 66 } 67 68 74 public void printStackTrace(java.io.PrintStream s) { 75 super.printStackTrace(s); 76 if (nativeException != null) { 77 s.println("\nNested exception:"); 78 nativeException.printStackTrace(s); 79 } 80 } 81 } 82 | Popular Tags |