Package com.hw.langchain.schema
Class OutputParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.hw.langchain.schema.OutputParserException
- All Implemented Interfaces:
Serializable
Exception that output parsers should raise to signify a parsing error.
This exists to differentiate parsing errors from other code or execution errors that also may arise inside the output parser. OutputParserExceptions will be available to catch and handle in ways to fix the parsing error, while other errors will be raised.
- Author:
- HamaWhite
- See Also:
-
Constructor Summary
ConstructorDescriptionOutputParserException
(Object error) OutputParserException
(Object error, String observation, String llmOutput, boolean sendToLlm) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OutputParserException
-
OutputParserException
-
-
Method Details
-
getObservation
-
getLlmOutput
-
isSendToLlm
public boolean isSendToLlm()
-