EmbeddingError

org.llm4s.llmconnect.model.EmbeddingError
final case class EmbeddingError(code: Option[String], message: String, provider: String) extends LLMError

EmbeddingError represents a structured error returned from an embedding provider (e.g., OpenAI or VoyageAI) or local encoders/extractors.

Value parameters

code

Optional error code, typically an HTTP status (e.g., "401", "400").

message

Human-readable error message from the provider or client.

provider

Source component ("openai", "voyage", "encoder", "extractor", etc.)

Attributes

Graph
Supertypes
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def correlationId: Option[String]

Error correlation IDs for debugging

Error correlation IDs for debugging

Attributes

Inherited from:
LLMError
def formatted: String

Formatted error message with context

Formatted error message with context

Attributes

Inherited from:
LLMError
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Deprecated and Inherited methods

def isRecoverable: Boolean

DEPRECATED: Use type-level markers instead

DEPRECATED: Use type-level markers instead

Attributes

Deprecated
[Since version 0.1.9] Use pattern matching on RecoverableError/NonRecoverableError traits
Inherited from:
LLMError

Concrete fields

override val context: Map[String, String]

Additional context information

Additional context information

Attributes