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
@@ -1,21 +1,21 @@
import 'package:core/domain/exceptions/app_base_exception.dart';
class NotFoundServerSettingsException extends AppBaseException {
NotFoundServerSettingsException([super.message]);
const NotFoundServerSettingsException([super.message]);
@override
String get exceptionName => 'NotFoundServerSettingsException';
}
class NotFoundSettingOptionException extends AppBaseException {
NotFoundSettingOptionException([super.message]);
const NotFoundSettingOptionException([super.message]);
@override
String get exceptionName => 'NotFoundSettingOptionException';
}
class CanNotUpdateServerSettingsException extends AppBaseException {
CanNotUpdateServerSettingsException([super.message]);
const CanNotUpdateServerSettingsException([super.message]);
@override
String get exceptionName => 'CanNotUpdateServerSettingsException';
@@ -17,7 +17,7 @@ class GetServerSettingInteractor {
final serverSetting = await _serverSettingsRepository.getServerSettings(accountId);
final settingOption = serverSetting.settings;
if (settingOption == null) {
yield Left(GetServerSettingFailure(NotFoundSettingOptionException()));
yield Left(GetServerSettingFailure(const NotFoundSettingOptionException()));
} else {
yield Right(GetServerSettingSuccess(settingOption));
}
@@ -27,7 +27,7 @@ class UpdateServerSettingInteractor {
);
final settingOption = serverSetting.settings;
if (settingOption == null) {
yield Left(UpdateServerSettingFailure(NotFoundServerSettingsException()));
yield Left(UpdateServerSettingFailure(const NotFoundServerSettingsException()));
} else {
yield Right(UpdateServerSettingSuccess(settingOption));
}