Class ChatGenerationFailedException
- Namespace
- MailFathom.Application.Chat
- Assembly
- MailFathom.Application.dll
Indicates that a chat request produced no answer, and says which kind of failure ended it.
public sealed class ChatGenerationFailedException : MailFathomException, ISerializable
- Inheritance
-
ChatGenerationFailedException
- Implements
- Inherited Members
Remarks
An exception rather than a result type, for the reason its embedding counterpart is one: the fact travels through code that cannot decide what it means. The resilience pipeline between the adapter and its caller reads it to choose whether to make another attempt, and a result would have to be unwrapped and rethrown there anyway.
The message names the endpoint by the alias the deployment gave it in configuration and never by its address, and it carries nothing of the conversation that failed. Both follow from what MailFathomException permits a message to say: an endpoint address identifies a tenant, and a prompt is whatever the person asking typed.
Constructors
- ChatGenerationFailedException(string, ChatGenerationFailure)
Initializes a failure naming the endpoint alias and what kind of failure it was.
- ChatGenerationFailedException(string, ChatGenerationFailure, Exception)
Initializes a failure naming the endpoint alias, what kind of failure it was, and the failure that revealed it.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
- Failure
Gets what kind of failure ended the request.
- IsWorthRepeating
Gets whether repeating the request could succeed without anything else changing first.