cn.dyaoming.errors.AppRunTimeException Maven / Gradle / Ivy
package cn.dyaoming.errors;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* 系统业务层异常
*
* @author DYAOMING
* @version 0.0.1
* @since 2019-3-13
*/
public class AppRunTimeException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* 构造函数
*
* @param message 异常信息
*/
public AppRunTimeException(String message) {
super(message);
}
/**
* 构造函数
*
* @param message 异常信息
* @param cause 异常
*/
public AppRunTimeException(String message, Throwable cause) {
super(message, cause);
}
/**
* 构造函数
*
* @param cause 异常
*/
public AppRunTimeException(Throwable cause) {
super(cause);
}
@Override
public String getMessage() {
return super.getMessage();
}
public Throwable getRootCause() {
return super.getCause();
}
@Override
public void printStackTrace() {
super.printStackTrace();
}
@Override
public void printStackTrace(PrintStream s) {
super.printStackTrace(s);
}
@Override
public void printStackTrace(PrintWriter s) {
super.printStackTrace(s);
}
}