TF-1115 Add CacheExceptionThrower

This commit is contained in:
dab246
2022-10-28 11:48:40 +07:00
committed by Dat H. Pham
parent 1b4f3e4841
commit 5746d031b9
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,10 @@
import 'package:tmail_ui_user/main/exceptions/cache_exception.dart';
import 'package:tmail_ui_user/main/exceptions/exception_thrower.dart';
class CacheExceptionThrower extends ExceptionThrower {
@override
void throwException(dynamic exception) {
throw UnknownCacheError(message: exception.toString());
}
}