Skip to main content
Private preview: this is rolling out and may not be available on your account yet.
Every error the SDK throws or returns extends one base class. Catch with isSumvinError, then narrow.
The two never overlap, so check isSumvinError first and then each one.

Kinds of request failure

ApiError.kind is one of:

Branch on codes, not messages

message is a diagnostic for developers. Build what your users see from errorCode, status and kind. The codes are listed in Errors.