Skip to content

Commit 4c2cea5

Browse files
Do not map OBX_ERROR_STD codes to special exceptions (#31)
1 parent 9833f0e commit 4c2cea5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

objectbox/lib/src/native/bindings/helpers.dart

-4
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,8 @@ class ObjectBoxNativeError {
6969
case OBX_ERROR_ILLEGAL_STATE:
7070
throw StateError(messageWithErrorCode);
7171
case OBX_ERROR_ILLEGAL_ARGUMENT:
72-
case OBX_ERROR_STD_ILLEGAL_ARGUMENT:
7372
throw ArgumentError(messageWithErrorCode);
7473
case OBX_ERROR_NUMERIC_OVERFLOW:
75-
case OBX_ERROR_STD_OUT_OF_RANGE:
76-
case OBX_ERROR_STD_RANGE:
77-
case OBX_ERROR_STD_OVERFLOW:
7874
throw RangeError(messageWithErrorCode);
7975
case OBX_ERROR_DB_FULL:
8076
throw DbFullException(messageWithContext, code);

0 commit comments

Comments
 (0)