TF-196 Create RemoteExceptionThrower to catch error from network
This commit is contained in:
@@ -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 => [];
|
||||
}
|
||||
Reference in New Issue
Block a user