From 236ad5f075acaa269fb81c24340e126f0fb9ab9e Mon Sep 17 00:00:00 2001 From: "Dat H. Pham" Date: Mon, 9 Mar 2026 09:18:00 +0700 Subject: [PATCH] Override props method for CacheException --- lib/main/exceptions/cache_exception.dart | 3 +++ lib/main/exceptions/remote_exception.dart | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/main/exceptions/cache_exception.dart b/lib/main/exceptions/cache_exception.dart index f46f1ef68..043981f8e 100644 --- a/lib/main/exceptions/cache_exception.dart +++ b/lib/main/exceptions/cache_exception.dart @@ -14,6 +14,9 @@ abstract class CacheException with EquatableMixin implements Exception { } return exceptionName; } + + @override + List get props => [message]; } class UnknownCacheError extends CacheException { diff --git a/lib/main/exceptions/remote_exception.dart b/lib/main/exceptions/remote_exception.dart index 751c77b59..76564a522 100644 --- a/lib/main/exceptions/remote_exception.dart +++ b/lib/main/exceptions/remote_exception.dart @@ -116,7 +116,8 @@ class RefreshTokenFailedException extends RemoteException { Object? message }) : super( code: code, - message: message ?? 'Refresh Token failed with 400 Bad Request. The session is invalid/revoked.', + message: message ?? + 'Refresh Token failed with status $code. The session is invalid/revoked.', ); @override