Error handling
All SDK errors extendFourMicaError. Import the specific classes to branch on failure type.
The
Auth* family also includes AuthUrlError, AuthTransportError, AuthDecodeError, AuthApiError, and AuthConfigError, all extending AuthError.
Distinguishing errors
Import the classes you want to handle and branch withinstanceof.
Every error extends
FourMicaError, so you can catch that base class to handle
any SDK failure in one place.Next steps
Overview
Install the SDK and see the capabilities at a glance.
Client operations
Deposit collateral, sign payments, and settle cleared cycles.