View Javadoc
1 /*** $Id: DAOException.java,v 1.1.1.1 2004/05/18 10:50:12 mochoa Exp $ */ 2 package org.j2ee.dao; 3 4 /*** 5 * <br> 6 * Based on an example of book <i>Code Notes for J2EE, Edited by GREGORY BRILL, 7 * e-ISBN 0-679-64727-9</i> 8 * <br> 9 * Last modified $Date: 2004/05/18 10:50:12 $ 10 * @version $Revision: 1.1.1.1 $ 11 * @author mochoa (mochoa@users.sourceforge.net)*/ 12 public class DAOException extends Exception 13 { 14 private Throwable e = null; 15 16 public DAOException(String message) 17 { 18 super(message); 19 } 20 21 public DAOException(String message, Throwable cause) 22 { 23 // Do not work with JDK prior to 1.4 24 //super(message,cause); 25 //this.initCause(cause); 26 super(message+" - "+cause.getMessage()); 27 e = cause; 28 } 29 30 public Throwable getCause() { 31 return e; 32 } 33 }

This page was automatically generated by Maven