TapProtoException.fromNative constructor

TapProtoException.fromNative()

Implementation

factory TapProtoException.fromNative() {
  ensureNativeThreadState(CKTapThreadState.tapProtocolError);
  final exception = nativeLibrary.Core_getTapProtoException();
  final message = dartStringFromCString(exception.message);
  nativeLibrary.Utility_freeCKTapProtoException(exception);
  return TapProtoException.fromCode(exception.code, message);
}