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.GetBaseExceptionSystem.Exception.GetTypeSystem.Exception.ToStringSystem.Exception.DataSystem.Exception.HelpLinkSystem.Exception.HResultSystem.Exception.InnerExceptionSystem.Exception.MessageSystem.Exception.SourceSystem.Exception.StackTraceSystem.Exception.TargetSiteSystem.Exception.SerializeObjectStateSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)