123456789101112131415161718192021222324252627282930313233343536373839 |
- package com.rongwei.rwapsserver.aps.util;
- import lombok.Data;
- @Data
- public class ApsException extends RuntimeException{
- /**
- * 异常编码
- */
- private String code;
- /**
- * 附加数据
- */
- private Object data;
- public ApsException(String errorMsg) {
- super(errorMsg);
- this.code= "500";
- }
- public ApsException(String code, String errorMsg) {
- super(errorMsg);
- this.code = code;
- }
- public ApsException(String code, String errorMsg, Throwable errorCourse) {
- super(errorMsg,errorCourse);
- this.code = code;
- }
- public ApsException(String code, String message, Object data) {
- super(message);
- this.code = code;
- this.data = data;
- }
- }
|