👎 增加所有租户商城的自动取消订单和自动确认收货
This commit is contained in:
+7
-7
@@ -19,40 +19,40 @@ import lombok.EqualsAndHashCode;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class YshopException extends RuntimeException{
|
||||
public class ShopException extends RuntimeException{
|
||||
|
||||
private static final long serialVersionUID = -2470461654663264392L;
|
||||
|
||||
private Integer errorCode;
|
||||
private String message;
|
||||
|
||||
public YshopException() {
|
||||
public ShopException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public YshopException(String message) {
|
||||
public ShopException(String message) {
|
||||
super(message);
|
||||
this.errorCode = ApiCode.FAIL.getCode();
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public YshopException(Integer errorCode, String message) {
|
||||
public ShopException(Integer errorCode, String message) {
|
||||
super(message);
|
||||
this.errorCode = errorCode;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public YshopException(ApiCode apiCode) {
|
||||
public ShopException(ApiCode apiCode) {
|
||||
super(apiCode.getMessage());
|
||||
this.errorCode = apiCode.getCode();
|
||||
this.message = apiCode.getMessage();
|
||||
}
|
||||
|
||||
public YshopException(String message, Throwable cause) {
|
||||
public ShopException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public YshopException(Throwable cause) {
|
||||
public ShopException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user