Class JudgeException

All Implemented Interfaces:
Serializable

@Experimental public class JudgeException extends LangChain4jException
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 Details

    • JudgeException

      public JudgeException(String message)
      Parameters:
      message - why the text could not be judged
    • JudgeException

      public JudgeException(String message, Throwable cause)
      Parameters:
      message - why the text could not be judged
      cause - the exception that prevented it