新版仿ok交易所-后端
1
zyy
2026-03-05 9fa09b7700040b6cf416081ba0edfcfb72219b16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许,不可做商业用途!
 *
 * 版权所有,侵权必究!
 */
 
package com.yami.trading.common.exception;
 
import com.yami.trading.common.enums.YamiHttpStatus;
import org.springframework.http.HttpStatus;
 
public class YamiShopBindException extends RuntimeException{
 
    /**
     *
     */
    private static final long serialVersionUID = -4137688758944857209L;
 
    /**
     * http状态码
     */
    private Integer httpStatusCode;
 
    private Object object;
 
    private  int code=1;
 
    public int getCode() {
        return code;
    }
 
    /**
     * @param httpStatus http状态码
     */
    public YamiShopBindException(YamiHttpStatus httpStatus) {
        super(httpStatus.getMsg());
        this.httpStatusCode = httpStatus.value();
    }
 
    public YamiShopBindException(int code,  String msg) {
        super(msg);
        this.code = code;
    }
 
    /**
     * @param httpStatus http状态码
     */
    public YamiShopBindException(YamiHttpStatus httpStatus, String msg) {
        super(msg);
        this.httpStatusCode = httpStatus.value();
    }
 
 
    public YamiShopBindException(String msg) {
        super(msg);
        this.httpStatusCode = HttpStatus.BAD_REQUEST.value();
    }
 
    public YamiShopBindException(String msg, Object object) {
        super(msg);
        this.httpStatusCode = HttpStatus.BAD_REQUEST.value();
        this.object = object;
    }
 
    public Integer getHttpStatusCode() {
        return httpStatusCode;
    }
 
}