refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
+1
-1
@@ -536,7 +536,7 @@ extension PreviewAttachmentDownloadControllerExtension on DownloadController {
|
||||
|
||||
if (!isOpen) {
|
||||
toastManager.showMessageFailure(
|
||||
PreviewEmailFromEmlFileFailure(CannotOpenNewWindowException()),
|
||||
PreviewEmailFromEmlFileFailure(const CannotOpenNewWindowException()),
|
||||
);
|
||||
}
|
||||
} else if (PlatformInfo.isMobile) {
|
||||
|
||||
Reference in New Issue
Block a user