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

com.labbol.service.exception.CommonException Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
/**
 * 
 */
package com.labbol.service.exception;

/**
 * 通用异常
 * @author 彭飞
 * @date 2019年7月17日下午1:15:39
 */
public class CommonException extends ServiceException{



	private static final long serialVersionUID = -4567453170966801859L;
	
	public CommonException(String code, String msg) {
		this(code, msg,msg);
	}
	
	public CommonException(String code, String msg , String message) {
		super(code, msg , message);
	}
	
	/**
	 * 
	 * @param commonException 异常类型
	 * @param message 异常消息
	 */
	public CommonException(CommonExceptionEnum commonException , String message) {
		super(commonException.getErrorResponse(),message);
	}
	
	/**
	 * @param commonException 异常类型
	 */
	public CommonException(CommonExceptionEnum commonException) {
		super(commonException.getErrorResponse());
	}
	
	/**
	 * @param commonException 异常类型
	 */
	public CommonException(CommonExceptionEnum commonException , Throwable t) {
		super(commonException.getErrorResponse(),t);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy