| | |
| | | package com.nova.sankuai.infra.config; |
| | | |
| | | import lombok.Getter; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | |
| | | * @author weikangdi |
| | | * 业务异常处理 |
| | | */ |
| | | @Getter |
| | | public class CommonException extends RuntimeException { |
| | | private static final Logger logger = LoggerFactory.getLogger(CommonException.class); |
| | | private static final long serialVersionUID = 5044938065901970022L; |
| | |
| | | public CommonException(Throwable cause, Object... parameters) { |
| | | super(cause); |
| | | this.parameters = parameters; |
| | | } |
| | | |
| | | public Object[] getParameters() { |
| | | return this.parameters; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return this.code; |
| | | } |
| | | |
| | | public String getTrace() { |