first commit

This commit is contained in:
ksenia312
2024-01-31 14:16:22 +01:00
commit 541fbeaaf3
132 changed files with 6463 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import 'dart:io';
import 'package:nearby_service/src/utils/logger.dart';
class NearbyServiceException implements Exception {
NearbyServiceException(this.error) {
Logger.error(error);
}
factory NearbyServiceException.unsupportedPlatform({required String caller}) {
return NearbyServiceException(
'$caller is not supported for platform ${Platform.operatingSystem}',
);
}
factory NearbyServiceException.unsupportedDecoding(dynamic value) {
return NearbyServiceException(
'Got unknown value=$value with runtimeType=${value.runtimeType}',
);
}
final Object? error;
}