首页>代码>spring boot整合Security实现单点登录,支付宝支付demo(沙盒模式)。>/alipay/boot-util/src/main/java/com/example/BusinessException.java
package com.example; public class BusinessException extends RuntimeException { private static final long serialVersionUID = -4879677283847539655L; private int errorCode; private String errorMessage; private String exceptionMessage; private Exception exception; public BusinessException(String errorMessage) { super(); this.errorMessage = errorMessage; } public BusinessException(int errorCode, String errorMessage) { super(); this.errorCode = errorCode; this.errorMessage = errorMessage; } public BusinessException(int errorCode, String errorMessage, Exception exception) { super(); this.errorCode = errorCode; this.errorMessage = errorMessage; this.exception = exception; } public BusinessException(String errorMessage, String exceptionMessage) { super(); this.exceptionMessage = exceptionMessage; this.errorMessage = errorMessage; } public String getExceptionMessage() { return exceptionMessage; } public void setExceptionMessage(String exceptionMessage) { this.exceptionMessage = exceptionMessage; } public int getErrorCode() { return errorCode; } public void setErrorCode(int errorCode) { this.errorCode = errorCode; } public String getErrorMessage() { return errorMessage; } public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public Exception getException() { return exception; } public void setException(Exception exception) { this.exception = exception; } public BusinessException(int errorCode, String errorMessage, String exceptionMessage) { super(); this.errorCode = errorCode; this.errorMessage = errorMessage; this.exceptionMessage = exceptionMessage; } }
最近下载更多
miaoshi LV16
2023年9月5日
在下毛毛雨 LV1
2023年4月18日
annazhang LV29
2022年10月31日
a1677596408 LV23
2022年3月28日
liuziqi0529 LV4
2022年3月22日
crosa_Don LV18
2022年3月2日
_nrxsh LV12
2021年6月30日
11703060125 LV8
2021年6月3日
superscro LV9
2021年4月27日
17704627276 LV17
2021年1月26日