Skip to main content

Error handling

With the store

createConvertStore never throws inside the component — errors remain in $store.error, as instances of MarkpdfError (the same class as SDK base):
convert() also rejects the promise it returns:

With the base client

See the full error table of the base SDK — the same applies here because @markpdf/svelte re-exports the same classes.

Reusable message in a component

The store does not automatically retry. If you need retries with backoff on 429/5xx, use the base client with maxRetries — see Node.js SDK Error Handling — by directly calling client.convertFile instead of convertStore.convert.