Skip to main content

Class LlmEmbeddingClientException

Represents errors that occur during LLM embedding client operations.

Namespace: Workspace.XBR.Xperiflow.LanguageModels

Assembly: Xperiflow.dll

Declaration
public class LlmEmbeddingClientException : Exception, ISerializable

Inheritance: System.Object -> System.Exception

Examples

try
{
var embeddings = await embeddingClient.GenerateEmbeddingsAsync("invalid-model", texts);
}
catch (LlmEmbeddingClientException ex)
`{
Console.WriteLine($"Embedding operation failed: {ex.Message}`");
}

Remarks

This exception is thrown when errors occur during language model embedding operations, including model communication failures, API response errors, or configuration issues.

Common scenarios that trigger this exception include:

  • Unsupported embedding models

  • API communication failures

  • Invalid input text formats

  • Service unavailability

  • Null or empty embedding responses

Implements: System.Runtime.Serialization.ISerializable

Implements

  • System.Runtime.Serialization.ISerializable

Inherited Members

  • System.Exception.GetBaseException
  • System.Exception.GetType
  • System.Exception.ToString
  • System.Exception.Data
  • System.Exception.HelpLink
  • System.Exception.HResult
  • System.Exception.InnerException
  • System.Exception.Message
  • System.Exception.Source
  • System.Exception.StackTrace
  • System.Exception.TargetSite
  • System.Exception.SerializeObjectState
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)

Was this page helpful?