Skip to content

Commit 204063e

Browse files
Make JniError.of internal
1 parent b805e19 commit 204063e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkgs/jni/lib/src/errors.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import 'dart:io';
66

7+
import '../_internal.dart';
78
import 'third_party/generated_bindings.dart';
89

910
// TODO(#567): Add the fact that [JException] is now a [JObject] to the
@@ -37,6 +38,7 @@ sealed class JniError extends Error {
3738

3839
JniError(this.message);
3940

41+
@internal
4042
factory JniError.of(JniErrorCode status) {
4143
if (!_errors.containsKey(status)) {
4244
status = JniErrorCode.ERR;

0 commit comments

Comments
 (0)