fix(sentry): resolve minified exception types on web release
This commit is contained in:
@@ -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()),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user