refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user