added constructor for DatabaseException(ex)

Former-commit-id: 178a4f2ea8d71c148892ab95dc480e88b1186105
This commit is contained in:
Jeremy Long
2013-11-17 08:08:01 -05:00
parent dccb84ded8
commit ad3ad81c1e

View File

@@ -39,13 +39,22 @@ public class DatabaseException extends Exception {
super(msg); super(msg);
} }
/**
* Creates an DatabaseException.
*
* @param ex the cause of the exception
*/
public DatabaseException(Throwable ex) {
super(ex);
}
/** /**
* Creates an DatabaseException. * Creates an DatabaseException.
* *
* @param msg the exception message * @param msg the exception message
* @param ex the cause of the exception * @param ex the cause of the exception
*/ */
public DatabaseException(String msg, Exception ex) { public DatabaseException(String msg, Throwable ex) {
super(msg, ex); super(msg, ex);
} }
} }