1 6 package org.logicalcobwebs.proxool; 7 8 import java.sql.SQLException ; 9 10 19 public class FatalSQLException extends SQLException { 20 21 24 private SQLException cause; 25 26 public FatalSQLException(SQLException cause) { 27 this(cause, cause.getMessage(), cause.getSQLState()); 28 } 29 30 35 public FatalSQLException(SQLException cause, String reason, String sqlState) { 36 super(reason, sqlState); 37 this.cause = cause; 38 } 39 40 44 public Throwable getCause() { 45 return cause; 46 } 47 48 52 public SQLException getOriginalSQLException() { 53 return cause; 54 } 55 56 } 57 | Popular Tags |