Exceptions
Custom exception hierarchy used by finamt.
finamt.exceptions
Exception hierarchy for the finamt library.
- exception finamt.exceptions.FinanceAgentError(message: str, *, cause: BaseException | None = None)[source]
Bases:
ExceptionBase exception for all finamt errors.
- exception finamt.exceptions.OCRProcessingError(message: str, *, cause: BaseException | None = None)[source]
Bases:
FinanceAgentErrorRaised when text cannot be extracted from an image or PDF.
- exception finamt.exceptions.LLMExtractionError(message: str, *, cause: BaseException | None = None)[source]
Bases:
FinanceAgentErrorRaised when the local LLM fails to return valid structured JSON.
- exception finamt.exceptions.InvalidReceiptError(message: str, *, cause: BaseException | None = None)[source]
Bases:
FinanceAgentErrorRaised when extracted receipt data fails business-logic validation.