LangChainException constructor

const LangChainException({
  1. String? message,
  2. String? code,
  3. StackTrace? stackTrace,
})

A base class for all exceptions thrown by LangChain.

Implementation

const LangChainException({
  this.message,
  final String? code,
  this.stackTrace,
}) : code = code ?? 'exception';