提交 0062cb91 编写于 作者: Dcpnet's avatar Dcpnet 🇨🇳

Add new file

上级 dcf0280c
package cn.dcpnet.exception;
import cn.dcpnet.util.ReturnInfo;
import cn.dcpnet.util.ReturnMap;
import java.util.Map;
/**
* @program: template
* @description:
* @author: Dcpnet
* @create: 2020-12-19 16:34
*/
public class BusinessException extends RuntimeException{
/** 存储内容得Map */
private Map<String,Object> map;
public BusinessException() {
super();
}
public BusinessException(ReturnInfo info) {
super(info.getCode()+"->"+info.getMessage());
map = ReturnMap.getMap(info);
}
public BusinessException(Map<String, Object> map) {
this.map = map;
}
public Map<String, Object> getMap() {
return map;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册