أخطاء digna Python SDK 2026.11¶
توثّق هذه الصفحة التسلسل الهرمي للاستثناءات الذي توفّره حزمة تطوير Python الخاصة بـ digna. وتغطي هذه الأخطاء إخفاقات واجهة البرمجة ومشكلات المصادقة والتفويض وحالات عدم العثور على المورد.
تشتق جميع الأخطاء التي تطلقها الحزمة من DignaError.
digna_sdk.exceptions ¶
Exceptions raised by the Digna SDK.
DignaAPIError(status_code, code, message) ¶
Bases: DignaError
Raised when the Digna API returns an error response.
Attributes:
| Name | Type | Description |
|---|---|---|
status_code | The HTTP status code of the response. | |
code | The machine-readable error code reported by the API, if any. | |
message | The human-readable error message reported by the API. |
DignaAuthenticationError(status_code, code, message) ¶
DignaAuthorizationError(status_code, code, message) ¶
DignaConnectionError ¶
Bases: DignaError
Raised when the SDK could not reach the Digna backend.
Covers DNS failures, refused connections, TLS errors, and timeouts. The underlying httpx exception is available as __cause__.
DignaError ¶
Bases: Exception
Base class for all errors raised by the Digna SDK.
DignaInspectionRequestFailed(inspection_request_id, status) ¶
Bases: DignaError
Raised by InspectionRequestsResource.wait_until_finished when an inspection request reaches a non-successful terminal state (FAILED, ABORTED, or CANCELLED).