package com.laytonsmith.persistence;
/**
*
*
*/
public class DataSourceException extends Exception {
/**
* Constructs an instance of
* <code>DataSourceException</code> with the specified detail message.
*
* @param msg the detail message.
*/
public DataSourceException(String msg){
super(msg);
}
public DataSourceException(String msg, Throwable reason) {
super(msg, reason);
}
public DataSourceException(Throwable reason){
super(reason);
}
public Throwable getRootCause(){
Throwable t = this.getCause();
while(t != null){
t = t.getCause();
}
return t;
}
}