zhou zhou
14 小时以前 d5884d0974d17d96225a5d80e432de33a5ee6552
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
package com.vincent.rsf.server.ai.exception;
 
import com.vincent.rsf.framework.exception.CoolException;
import com.vincent.rsf.server.ai.enums.AiErrorCategory;
import lombok.Getter;
 
@Getter
public class AiChatException extends CoolException {
 
    private final String code;
 
    private final AiErrorCategory category;
 
    private final String stage;
 
    public AiChatException(String code, AiErrorCategory category, String stage, String message) {
        super(message);
        this.code = code;
        this.category = category;
        this.stage = stage;
    }
 
    public AiChatException(String code, AiErrorCategory category, String stage, String message, Throwable cause) {
        super(message);
        this.code = code;
        this.category = category;
        this.stage = stage;
        initCause(cause);
    }
}