Junjie
8 天以前 9a8018c3fbc94f99d5d184c8cb1ef23d7366cea0
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
package com.zy.ai.gateway.adapter;
 
public class AiProviderException extends RuntimeException {
 
    private final Long routeId;
    private final Integer statusCode;
    private final String responseBody;
 
    public AiProviderException(String message) {
        this(message, null, null, null, null);
    }
 
    public AiProviderException(String message, Throwable cause) {
        this(message, cause, null, null, null);
    }
 
    public AiProviderException(String message, Long routeId, Integer statusCode, String responseBody) {
        this(message, null, routeId, statusCode, responseBody);
    }
 
    public AiProviderException(String message, Throwable cause, Long routeId, Integer statusCode, String responseBody) {
        super(message, cause);
        this.routeId = routeId;
        this.statusCode = statusCode;
        this.responseBody = responseBody;
    }
 
    public Long getRouteId() {
        return routeId;
    }
 
    public Integer getStatusCode() {
        return statusCode;
    }
 
    public String getResponseBody() {
        return responseBody;
    }
}