# fromThrowable static method

NativeException fromThrowable(

1. Throwable? throwable

)

## Implementation

    static NativeException fromThrowable(Throwable? throwable) {
      if (throwable == null) {
        return NativeException(error: "Native exception from Throwable, but throwable is null");
      }
      return NativeException(error: "Native exception from Throwable.\nmessage: ${throwable.message}\nthrowable: ${throwable.throwable.toString()}");
    }