Skip to content

Exception.getInner ​

ts
Exception.getInner(err: UniffiThrownObject<Exception>): Exception

This block has data-verify="none" because UniffiThrownObject comes from @ubjs/core. The package does not export it.

Gives the Exception inside a caught value. Synchronous.

Parameters

NameTypeDescription
errUniffiThrownObject<Exception>A value that passed hasInner.

Returns. Exception. The SDK exception object.

Throws. Not verified.

Example

example.ts
ts
import { Exception } from '@fedimint/react-native'

declare const err: unknown

if (Exception.hasInner(err)) {
  const inner = Exception.getInner(err) 
  console.log(inner.code())
}

Used in. Errors, step 01, Quickstart, step 02, Join, step 01, Send, step 02, Send, step 04, Restore, step 02, Session, step 03, Installation, step 06