ServiceException.java 1000 Bytes
package com.huaheng.common.exception.service;

import com.huaheng.common.exception.base.BaseException;

import java.io.Serializable;
/**
 * @Description: 业务类异常
 * @author 唐颖
 * @date 2018/4/20 14:30
 * 
 */
public class ServiceException  extends BaseException implements Serializable{

	private static final long serialVersionUID = 1L;

	public ServiceException(String message) {
		super(message);
	}
	/***
		为配合多仓多货主的方式异常抛出
	 */
	public ServiceException(String warehouseCode,String companyCode,String message) {
		super("仓库:"+warehouseCode+",+,货主:"+companyCode+",+信息:"+ message);
	}

	/***
	 为配合多仓多货主的方式异常抛出
	 */
	public ServiceException(String warehouseCode,String companyCode,String message,String solution) {
		super("仓库:"+warehouseCode+",+,货主:"+companyCode+",+信息:"+ message+". 处理:"+solution);
	}

	public ServiceException(String code, Object[] args)
	{
		super("user", code, args, null);
	}

}