org.llm4s.error.NotFoundError
See theNotFoundError companion object
@Stable
final case class NotFoundError extends LLMError, NonRecoverableError
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") - Companion
- object
- Graph
-
- Supertypes
-
trait NonRecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article