refactor(sentry): standardize exceptions to prevent Sentry minification

This commit is contained in:
dab246
2026-02-24 15:40:07 +07:00
committed by Dat H. Pham
parent 296548a781
commit 2e8a11e7eb
75 changed files with 1128 additions and 309 deletions
@@ -46,7 +46,7 @@ class ThreadIsolateWorker {
} else {
final rootIsolateToken = RootIsolateToken.instance;
if (rootIsolateToken == null) {
throw CanNotGetRootIsolateToken();
throw const CanNotGetRootIsolateToken();
}
final result = await _isolateExecutor.execute(
@@ -1,3 +1,15 @@
class NotFoundEmailsDeletedException implements Exception {}
import 'package:core/domain/exceptions/app_base_exception.dart';
class InteractorIsNullException implements Exception {}
class NotFoundEmailsDeletedException extends AppBaseException {
NotFoundEmailsDeletedException([super.message]);
@override
String get exceptionName => 'NotFoundEmailsDeletedException';
}
class InteractorIsNullException extends AppBaseException {
InteractorIsNullException([super.message]);
@override
String get exceptionName => 'InteractorIsNullException';
}