fix(sentry): resolve minified exception types on web release
This commit is contained in:
@@ -37,7 +37,7 @@ class ForwardingAPI with HandleSetErrorMixin {
|
||||
|
||||
final tMailForwardResult = result?.list.firstOrNull;
|
||||
if (tMailForwardResult == null) {
|
||||
throw NotFoundForwardException();
|
||||
throw const NotFoundForwardException();
|
||||
}
|
||||
|
||||
return tMailForwardResult;
|
||||
@@ -86,6 +86,6 @@ class ForwardingAPI with HandleSetErrorMixin {
|
||||
return (newForward, methodException);
|
||||
}
|
||||
|
||||
throw methodException ?? NotFoundForwardException();
|
||||
throw methodException ?? const NotFoundForwardException();
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class NotFoundForwardException extends AppBaseException {
|
||||
NotFoundForwardException([super.message]);
|
||||
const NotFoundForwardException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'NotFoundForwardException';
|
||||
}
|
||||
|
||||
class UpdateForwardException extends AppBaseException {
|
||||
UpdateForwardException([super.message]);
|
||||
const UpdateForwardException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'UpdateForwardException';
|
||||
}
|
||||
|
||||
class RecipientListIsEmptyException extends AppBaseException {
|
||||
RecipientListIsEmptyException([super.message]);
|
||||
const RecipientListIsEmptyException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'RecipientListIsEmptyException';
|
||||
}
|
||||
|
||||
class RecipientListWithInvalidEmailsException extends AppBaseException {
|
||||
RecipientListWithInvalidEmailsException([super.message]);
|
||||
const RecipientListWithInvalidEmailsException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'RecipientListWithInvalidEmailsException';
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ extension VerifyDefaultIdentitySupportedExtension on IdentitiesController {
|
||||
} else {
|
||||
consumeState(
|
||||
Stream.value(
|
||||
Left(EditDefaultIdentityFailure(NullSessionOrAccountIdException())),
|
||||
Left(EditDefaultIdentityFailure(const NullSessionOrAccountIdException())),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
+4
-4
@@ -301,7 +301,7 @@ class _AutocompleteContactTextFieldWithTagsState extends State<AutocompleteConta
|
||||
final emailAddress = EmailAddress(null, inputText);
|
||||
|
||||
if (!_validateEmailAddressIsValid(emailAddress)) {
|
||||
widget.onExceptionCallback?.call(RecipientListWithInvalidEmailsException());
|
||||
widget.onExceptionCallback?.call(const RecipientListWithInvalidEmailsException());
|
||||
_resetInputText();
|
||||
return;
|
||||
}
|
||||
@@ -350,12 +350,12 @@ class _AutocompleteContactTextFieldWithTagsState extends State<AutocompleteConta
|
||||
}
|
||||
|
||||
if (listEmailAddress.isEmpty) {
|
||||
widget.onExceptionCallback?.call(RecipientListIsEmptyException());
|
||||
widget.onExceptionCallback?.call(const RecipientListIsEmptyException());
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_validateListEmailAddressIsValid(listEmailAddress)) {
|
||||
widget.onExceptionCallback?.call(RecipientListWithInvalidEmailsException());
|
||||
widget.onExceptionCallback?.call(const RecipientListWithInvalidEmailsException());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -414,7 +414,7 @@ class _AutocompleteContactTextFieldWithTagsState extends State<AutocompleteConta
|
||||
}) {
|
||||
log('_AutocompleteContactTextFieldWithTagsState::_addEmailAddressToInputFieldAction:emailAddress = $emailAddress');
|
||||
if (!_validateEmailAddressIsValid(emailAddress)) {
|
||||
widget.onExceptionCallback?.call(RecipientListWithInvalidEmailsException());
|
||||
widget.onExceptionCallback?.call(const RecipientListWithInvalidEmailsException());
|
||||
if (isClearInput) {
|
||||
_resetInputText();
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ class VacationController extends BaseController {
|
||||
consumeState(_updateVacationInteractor.execute(accountId, vacationResponse));
|
||||
} else {
|
||||
consumeState(
|
||||
Stream.value(Left(UpdateVacationFailure(NullSessionOrAccountIdException()))),
|
||||
Stream.value(Left(UpdateVacationFailure(const NullSessionOrAccountIdException()))),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user