Files
tmail-flutter/core/lib/domain/exceptions/file_exception.dart
T
2025-05-16 09:59:49 -07:00

21 lines
538 B
Dart

import 'package:equatable/equatable.dart';
abstract class FileException with EquatableMixin implements Exception {
final String message;
FileException(this.message);
@override
String toString() => message;
@override
List<Object> get props => [message];
}
class NotFoundFileInFolderException extends FileException {
NotFoundFileInFolderException() : super('No files found in the folder');
}
class UserCancelShareFileException extends FileException {
UserCancelShareFileException() : super('User cancel share file');
}