Blame view

src/main/java/com/huaheng/common/exception/service/ServiceException.java 1000 Bytes
tangying authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
	}
19
20
21
22
23
24
25
26
27
28
29
30
31
	/***
		为配合多仓多货主的方式异常抛出
	 */
	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);
	}
tangying authored
32
33
34
35
36
37
38

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

}