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

cn.gnux.core.utils.exceptions.DbRuntimeException Maven / Gradle / Ivy

The newest version!
package cn.gnux.core.utils.exceptions;

import cn.gnux.core.utils.StrUtil;



/**
 * 数据库异常
 * @author 
 */
public class DbRuntimeException extends RuntimeException{
	private static final long serialVersionUID = 3624487785708765623L;

	public DbRuntimeException(Throwable e) {
		super(e.getMessage(), e);
	}
	
	public DbRuntimeException(String message) {
		super(message);
	}
	
	public DbRuntimeException(String messageTemplate, Object... params) {
		super(StrUtil.format(messageTemplate, params));
	}
	
	public DbRuntimeException(String message, Throwable throwable) {
		super(message, throwable);
	}
	
	public DbRuntimeException(Throwable throwable, String messageTemplate, Object... params) {
		super(StrUtil.format(messageTemplate, params), throwable);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy