Class EmbeddingGenerationFailedException
- Namespace
- MailFathom.Application.Emails.Embeddings
- Assembly
- MailFathom.Application.dll
Indicates that an embedding request produced no vectors, and says which kind of failure ended it.
public sealed class EmbeddingGenerationFailedException : MailFathomException, ISerializable
- Inheritance
-
EmbeddingGenerationFailedException
- Implements
- Inherited Members
Remarks
An exception rather than a result type, because 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, for the reason MailFathomException states: an endpoint address identifies a tenant, and this message reaches a log.
Constructors
- EmbeddingGenerationFailedException(string, EmbeddingGenerationFailure)
Initializes a failure naming the endpoint alias and what kind of failure it was.
- EmbeddingGenerationFailedException(string, EmbeddingGenerationFailure, 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.