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
@@ -60,7 +60,7 @@ class FileUploader {
} else {
final rootIsolateToken = RootIsolateToken.instance;
if (rootIsolateToken == null) {
throw CanNotGetRootIsolateToken();
throw const CanNotGetRootIsolateToken();
}
return await _isolateExecutor.execute(
@@ -1 +1,8 @@
class PickFileCanceledException implements Exception {}
import 'package:core/domain/exceptions/app_base_exception.dart';
class PickFileCanceledException extends AppBaseException {
PickFileCanceledException([super.message]);
@override
String get exceptionName => 'PickFileCanceledException';
}
@@ -1 +1,8 @@
class DataResponseIsNullException implements Exception {}
import 'package:core/domain/exceptions/app_base_exception.dart';
class DataResponseIsNullException extends AppBaseException {
DataResponseIsNullException([super.message]);
@override
String get exceptionName => 'DataResponseIsNullException';
}