ente/mobile/lib/services/machine_learning/ml_exceptions.dart
2024-06-24 17:29:21 +05:30

29 lines
692 B
Dart

class GeneralFaceMlException implements Exception {
final String message;
GeneralFaceMlException(this.message);
@override
String toString() => 'GeneralFaceMlException: $message';
}
class ThumbnailRetrievalException implements Exception {
final String message;
final StackTrace stackTrace;
ThumbnailRetrievalException(this.message, this.stackTrace);
@override
String toString() {
return 'ThumbnailRetrievalException: $message\n$stackTrace';
}
}
class CouldNotRetrieveAnyFileData implements Exception {}
class CouldNotRunFaceDetector implements Exception {}
class CouldNotWarpAffine implements Exception {}
class CouldNotRunFaceEmbeddor implements Exception {}