Table of Contents

Namespace Mythosia.AI.Exceptions

Classes

AIServiceException

Base exception for all AI service related errors

AgentMaxStepsExceededException

Exception thrown when a ReAct agent exceeds the maximum number of steps without producing a final answer.

AuthenticationException

Exception thrown when API authentication fails

ContentValidationException

Exception thrown when content validation fails

InvalidModelException

Exception thrown when an invalid model is specified

MultimodalNotSupportedException

Exception thrown when multimodal features are not supported by the service

RateLimitExceededException

Exception thrown when API rate limit is exceeded

ServiceUnavailableException

Exception thrown when the service is temporarily unavailable

StructuredOutputException

Exception thrown when structured output deserialization fails after all retry attempts. Contains rich diagnostic context: raw LLM responses, parse errors, attempt count, and schema.

TokenLimitExceededException

Exception thrown when token limit is exceeded