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,8 +1,29 @@
import 'package:core/domain/exceptions/app_base_exception.dart';
class NotFoundInboxMailboxException implements Exception {}
class NotFoundInboxMailboxException extends AppBaseException {
NotFoundInboxMailboxException([super.message]);
class NotFoundMailboxException implements Exception {}
@override
String get exceptionName => 'NotFoundInboxMailboxException';
}
class NotFoundClearMailboxResponseException implements Exception {}
class NotFoundMailboxException extends AppBaseException {
NotFoundMailboxException([super.message]);
class CannotMoveAllEmailException implements Exception {}
@override
String get exceptionName => 'NotFoundMailboxException';
}
class NotFoundClearMailboxResponseException extends AppBaseException {
NotFoundClearMailboxResponseException([super.message]);
@override
String get exceptionName => 'NotFoundClearMailboxResponseException';
}
class CannotMoveAllEmailException extends AppBaseException {
CannotMoveAllEmailException([super.message]);
@override
String get exceptionName => 'CannotMoveAllEmailException';
}