All failures thrown by the SDK are instances of EscrowCheckoutError, which
extends the native Error with a machine-readable code.
Handling errors
When using the React hook, the same error is surfaced on the hook’s error
field instead of being thrown, so no try/catch is needed.
Error codes
NOT_INITIALIZED, BROWSER_ONLY and INVALID_INPUT are developer/integration
errors; fix them in code. WIDGET_LOAD, NETWORK, SESSION_CREATE and
SESSION_RESPONSE are runtime conditions worth retrying or reporting to the
buyer.