陶杰
2024-08-22 ee9032d9baf5f33e376d2d2699136e0a7b26bec7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.mzl.flower.config.exception;
 
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mzl.flower.config.Auth2ExceptionSerializer;
import lombok.Getter;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;
 
@JsonSerialize(using = Auth2ExceptionSerializer.class)
public class SelfAuth2Exception extends OAuth2Exception {
 
    @Getter
    private String errorCode;
 
    public SelfAuth2Exception(String msg, Throwable t) {
        super(msg, t);
    }
 
    public SelfAuth2Exception(String msg, String errorCode) {
        super(msg);
        this.errorCode = errorCode;
    }
}