fromThrowable static method
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);
}