Errors¶
Error types used across the core library, FFI, and Python bindings.
ErrorKind / FfiErrorKind¶
categories¶
Error categories
Shared high-level categories for validation, parsing, XML, crypto, IO, network, unauthorized, internal, and API errors.
ErrorKind
FfiErrorKind
enum FfiErrorKind { ... };
Domain Errors (Rust)¶
error types¶
Core error types
Error
InvoiceError
ValidationError
CsrError
SigningError
XmlValidationError
InvoiceXmlError
ParseError
ZatcaError
Exceptions (Python)¶
exception hierarchy¶
Python exceptions
FatooraError
FfiError
InvalidInputError
ValidationError
ParseError
XmlError
CryptoError
IoError
NetworkError
UnauthorizedError
InternalError
ApiError
FfiError¶
fatoora_error_code¶
Read numeric error code
int fatoora_error_code(FfiError* error);
fatoora_error_message¶
Read error message
FfiString fatoora_error_message(FfiError* error);
fatoora_error_free¶
Free error handle
void fatoora_error_free(FfiError* error);