TF-196 Create RemoteExceptionThrower to catch error from network

This commit is contained in:
dab246
2022-06-21 16:10:56 +07:00
committed by Dat H. Pham
parent ea6a4aff9f
commit fd9b7cbb0a
3 changed files with 31 additions and 0 deletions
@@ -0,0 +1,16 @@
import 'package:equatable/equatable.dart';
abstract class RemoteException extends Equatable implements Exception {
final String? message;
RemoteException(this.message);
}
class UnknownError extends RemoteException {
UnknownError(String? message) : super(message);
@override
List<Object> get props => [];
}