NotFoundError
org.llm4s.error.NotFoundError
final case class NotFoundError(message: String, key: String) extends LLMError
Error indicating a required configuration or environment value was not found.
Use this error when a required configuration key, environment variable, or resource is missing. As a NonRecoverableError, the operation cannot proceed without providing the missing value.
Value parameters
- key
-
The configuration key or identifier that was not found
- message
-
Human-readable error description
Attributes
- Example
-
val error = NotFoundError("API key not found", "OPENAI_API_KEY") error.context // Map("key" -> "OPENAI_API_KEY") - Graph
-
- Supertypes
Members list
In this article