1 16 17 package org.apache.commons.dbcp; 18 19 20 31 public class DbcpException extends RuntimeException { 32 33 34 36 37 41 public DbcpException() { 42 43 super(); 44 45 } 46 47 48 53 public DbcpException(String message) { 54 55 this(message, null); 56 57 } 58 59 60 67 public DbcpException(String message, Throwable cause) { 68 69 super(message); 70 this.cause = cause; 71 72 } 73 74 75 81 public DbcpException(Throwable cause) { 82 83 super((cause == null) ? (String ) null : cause.toString()); 84 this.cause = cause; 85 86 } 87 88 89 91 92 96 protected Throwable cause = null; 97 98 99 101 102 105 public Throwable getCause() { 106 107 return (this.cause); 108 109 } 110 111 112 } 113 | Popular Tags |