OutputParserException class final

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.

Inheritance

Constructors

OutputParserException({String? message = ''})
Exception that output parsers should raise to signify a parsing error.
const

Properties

code String
The optional code to accommodate the message.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String?
The long form message of the exception.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace which provides information to the user about the call sequence that triggered an exception
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant LangChainException other) bool
The equality operator.
inherited