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