org.llm4s.error.SimpleError
See theSimpleError companion object
final case class SimpleError extends LLMError
A simple error with just a message and no additional context.
Use this error type for basic error cases where no structured context is needed. For errors with more context, prefer specific error types like ValidationError or ConfigurationError.
Value parameters
- message
-
Human-readable error description
Attributes
- Example
-
val error = SimpleError("Something went wrong") error.message // "Something went wrong" error.context // Map.empty - Companion
- object
- Graph
-
- Supertypes
Members list
In this article