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
@@ -1,5 +1,22 @@
class DownloadAttachmentInteractorIsNull implements Exception {}
import 'package:core/domain/exceptions/app_base_exception.dart';
class CapabilityDownloadAllNotSupportedException implements Exception {}
class DownloadAttachmentInteractorIsNull extends AppBaseException {
DownloadAttachmentInteractorIsNull([super.message]);
class DownloadUrlIsNullException implements Exception {}
@override
String get exceptionName => 'DownloadAttachmentInteractorIsNull';
}
class CapabilityDownloadAllNotSupportedException extends AppBaseException {
CapabilityDownloadAllNotSupportedException([super.message]);
@override
String get exceptionName => 'CapabilityDownloadAllNotSupportedException';
}
class DownloadUrlIsNullException extends AppBaseException {
DownloadUrlIsNullException([super.message]);
@override
String get exceptionName => 'DownloadUrlIsNullException';
}
@@ -536,7 +536,7 @@ extension PreviewAttachmentDownloadControllerExtension on DownloadController {
if (!isOpen) {
toastManager.showMessageFailure(
PreviewEmailFromEmlFileFailure(CannotOpenNewWindowException()),
PreviewEmailFromEmlFileFailure(const CannotOpenNewWindowException()),
);
}
} else if (PlatformInfo.isMobile) {