1 4 package com.tc.aspectwerkz.expression; 5 6 import java.io.PrintStream ; 7 import java.io.PrintWriter ; 8 9 14 public class ExpressionException extends RuntimeException { 15 18 private Throwable m_originalException; 19 20 25 public ExpressionException(final String message) { 26 super(message); 27 } 28 29 35 public ExpressionException(final String message, final Throwable throwable) { 36 super(message); 37 m_originalException = throwable; 38 } 39 40 43 public void printStackTrace() { 44 printStackTrace(System.err); 45 } 46 47 52 public void printStackTrace(final PrintStream ps) { 53 super.printStackTrace(ps); 54 if (m_originalException != null) { 55 m_originalException.printStackTrace(ps); 56 } 57 } 58 59 64 public void printStackTrace(final PrintWriter pw) { 65 super.printStackTrace(pw); 66 if (m_originalException != null) { 67 m_originalException.printStackTrace(pw); 68 } 69 } 70 } | Popular Tags |