All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.sylinx.hbatis.exception.HbatisException Maven / Gradle / Ivy

The newest version!
package cn.sylinx.hbatis.exception;

/**
 * 执行运行时异常
 * 
 * @author han
 *
 */
public class HbatisException extends RuntimeException implements ErrorCodeRecordable {

	private int code = 500;

	public HbatisException() {
		super();
	}

	public HbatisException(String message) {
		this(500, message);
	}

	public HbatisException(int code, String message) {
		super(message);
		this.code = code;
	}

	public HbatisException(String message, Throwable cause) {
		this(500, message, cause);
	}

	public HbatisException(int code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public HbatisException(Throwable cause) {
		super(cause);
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy