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);
|
}
|
}
|