DBRuntimeException.java
package nz.co.gregs.dbvolution.exceptions;
/**
* Thrown when unexpected errors occur.
*
* <p>
* DBvolution can only cope with so much, and when it reaches breaking point it
* throws a DBRuntime exception.
*
* <p>
* DBRuntimeException should not be thrown directly, please sub-class it and add
* information to the exception thrown to help developers improve their code.
*
* <p style="color: #F90;">Support DBvolution at
* <a href="http://patreon.com/dbvolution" target=new>Patreon</a></p>
*
* @author Malcolm Lett
*/
public class DBRuntimeException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* Thrown when unexpected errors occur.
*
*/
protected DBRuntimeException() {
fillInStackTrace();
}
/**
* Thrown when unexpected errors occur.
*
* @param message message
*/
public DBRuntimeException(String message) {
super(message);
fillInStackTrace();
}
/**
* Thrown when unexpected errors occur.
*
* @param cause cause
*/
protected DBRuntimeException(Throwable cause) {
super(cause);
fillInStackTrace();
}
/**
* Thrown when unexpected errors occur.
*
* @param message message
* @param cause cause
*/
public DBRuntimeException(String message, Throwable cause) {
super(message, cause);
Throwable fillInStackTrace = fillInStackTrace();
}
}