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