fromThrowable static method

NativeException fromThrowable(
  1. Throwable? throwable
)

Implementation

static NativeException fromThrowable(Throwable? throwable) {
  return NativeException(
      error:
          "Native exception in the Connect SDK.\nMessage: ${throwable?.message ?? ""}.\nThrowable: ${jsonEncode(throwable?.throwable?.toJson())}",
      throwable: throwable);
}