fix(lib): add message checks and improve exceptions

This commit is contained in:
ksenia312
2024-02-01 12:06:16 +01:00
parent 093a23145f
commit 5870dc2577
8 changed files with 84 additions and 40 deletions
+6
View File
@@ -30,5 +30,11 @@ class NearbyServiceException implements Exception {
);
}
factory NearbyServiceException.invalidMessage(String value) {
return NearbyServiceException(
'The message="$value" is not valid',
);
}
final Object? error;
}