20 lines
412 B
Java
20 lines
412 B
Java
package com.krylov.refound.ai.exception;
|
|
|
|
import java.util.List;
|
|
import lombok.Getter;
|
|
|
|
@Getter
|
|
public class ContentBlockedException extends RuntimeException {
|
|
|
|
private final String reason;
|
|
private final List<String> detectedLabels;
|
|
|
|
public ContentBlockedException(String reason, List<String> detectedLabels) {
|
|
super(reason);
|
|
this.reason = reason;
|
|
this.detectedLabels = detectedLabels;
|
|
}
|
|
|
|
|
|
}
|