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