Skip to main content

Class LlmChatClientException

Represents errors that occur during LLM chat client operations.

Namespace: Workspace.XBR.Xperiflow.LanguageModels

Assembly: Xperiflow.dll

Declaration
public class LlmChatClientException : Exception, ISerializable

Inheritance: System.Object -> System.Exception

Examples

try
{
var response = await chatClient.InteractAsync("invalid-model", messages);
}
catch (LlmChatClientException ex)
`{
Console.WriteLine($"Chat operation failed: {ex.Message}`");
}

Remarks

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

Common scenarios that trigger this exception include:

  • Unsupported model names

  • API communication failures

  • Invalid response formats

  • Service unavailability

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?