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