Add BadCredentialsException
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:jmap_dart_client/jmap/core/error/method/error_method_response.da
|
||||
abstract class RemoteException with EquatableMixin implements Exception {
|
||||
static const connectError = 'Connect error';
|
||||
static const noNetworkError = 'No network error';
|
||||
static const badCredentials = 'Bad credentials';
|
||||
|
||||
final String? message;
|
||||
final int? code;
|
||||
@@ -13,6 +14,13 @@ abstract class RemoteException with EquatableMixin implements Exception {
|
||||
const RemoteException({this.code, this.message});
|
||||
}
|
||||
|
||||
class BadCredentialsException extends RemoteException {
|
||||
const BadCredentialsException() : super(message: RemoteException.badCredentials);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class UnknownError extends RemoteException {
|
||||
const UnknownError({int? code, String? message}) : super(code: code, message: message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user