Package dev.langchain4j.exception
Class ContentFilteredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.exception.NonRetriableException
dev.langchain4j.exception.InvalidRequestException
dev.langchain4j.exception.ContentFilteredException
- All Implemented Interfaces:
Serializable
Exception thrown when the LLM provider refuses to process a request due to content filtering
or violation of usage policies.
This typically indicates that the input was flagged as inappropriate, unsafe, or against the provider’s content guidelines.
- Since:
- 1.2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContentFilteredException
(String message) ContentFilteredException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContentFilteredException
-
ContentFilteredException
-
ContentFilteredException
-