refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user