Error handling
The SDK translates each HTTP error code into a nested subclass ofMarkpdfException (RuntimeException).
Exceptions table
Todas extienden
MarkpdfException y exponen:
With runCatching
Automatic retries
OkHttp retries internally:429and5xx: retries with exponential backoff and jitter. HonorRetry-Afterif the server sends it.4xxdifferent from429: not retried.- Network/timeout errors: retried same as
5xx.
OkHttpClient with a custom Interceptor when building MarkpdfClient(http = ...).
