fix(sentry): resolve minified exception types on web release

This commit is contained in:
dab246
2026-03-03 11:43:45 +07:00
committed by Dat H. Pham
parent 2e8a11e7eb
commit 437c46f5ff
53 changed files with 133 additions and 109 deletions
@@ -438,7 +438,7 @@ class MailboxAPI with HandleSetErrorMixin, SessionMixin, MailAPIMixin {
if (setMailboxResponse?.updated?.containsKey(request.mailboxId.id) ?? false) {
return true;
} else {
throw SetMailboxRightsException();
throw const SetMailboxRightsException();
}
}
@@ -1,7 +1,7 @@
import 'package:core/domain/exceptions/app_base_exception.dart';
class NullSessionOrAccountIdException extends AppBaseException {
NullSessionOrAccountIdException(
const NullSessionOrAccountIdException(
[super.message = 'session and accountId should not be null']);
@override
@@ -1,7 +1,7 @@
import 'package:core/domain/exceptions/app_base_exception.dart';
class SetMailboxRightsException extends AppBaseException {
SetMailboxRightsException(
const SetMailboxRightsException(
[super.message = 'Failed to update mailbox rights.']);
@override
@@ -1507,7 +1507,7 @@ class MailboxController extends BaseMailboxController
consumeState(_subaddressingInteractor.execute(session, accountId, allowSubaddressingRequest));
} else {
handleSubAddressingFailure(
SubaddressingFailure.withException(NullSessionOrAccountIdException()),
SubaddressingFailure.withException(const NullSessionOrAccountIdException()),
);
}