fix: Prefer reusing AppBaseException instead of redefining the exception contract CacheException and RemoteException
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
abstract class CacheException extends AppBaseException {
|
||||
const CacheException([super.message]);
|
||||
}
|
||||
|
||||
class UnknownCacheError extends CacheException {
|
||||
const UnknownCacheError([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'UnknownCacheError';
|
||||
}
|
||||
Reference in New Issue
Block a user