1 15 package org.apache.tapestry.contrib.ejb; 16 17 import javax.ejb.EJBException ; 18 19 28 29 public class XEJBException extends EJBException  30 { 31 private Throwable rootCause; 32 33 public XEJBException(String message) 34 { 35 super(message); 36 } 37 38 public XEJBException(String message, Throwable rootCause) 39 { 40 super(message); 41 42 this.rootCause = rootCause; 43 } 44 45 public XEJBException(Throwable rootCause) 46 { 47 super(rootCause.getMessage()); 48 49 this.rootCause = rootCause; 50 } 51 52 public Throwable getRootCause() 53 { 54 return rootCause; 55 } 56 } | Popular Tags |