Class JudgeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.test.judge.JudgeException
- All Implemented Interfaces:
Serializable
Thrown when a
Judge could not judge a text, for example because the judge model returned a response that
could not be understood. It is not an AssertionError, so that a test framework reports it as an error of
the judge rather than as a failed check of the text.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJudgeException(String message) JudgeException(String message, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JudgeException
- Parameters:
message- why the text could not be judged
-
JudgeException
-