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
@@ -39,7 +39,7 @@ class ServerSettingsAPI with HandleSetErrorMixin {
)?.list.firstOrNull;
if (serverSettings == null) {
throw NotFoundServerSettingsException();
throw const NotFoundServerSettingsException();
}
return serverSettings;
@@ -81,10 +81,10 @@ class ServerSettingsAPI with HandleSetErrorMixin {
)?.updated ?? {};
if (updateServerSettingsResult.isEmpty) {
throw CanNotUpdateServerSettingsException();
throw const CanNotUpdateServerSettingsException();
}
} on ErrorMethodResponseException catch (_) {
throw CanNotUpdateServerSettingsException();
throw const CanNotUpdateServerSettingsException();
}
try {
@@ -94,12 +94,12 @@ class ServerSettingsAPI with HandleSetErrorMixin {
)?.list.firstOrNull;
if (updatedServerSettings == null) {
throw CanNotUpdateServerSettingsException();
throw const CanNotUpdateServerSettingsException();
}
return updatedServerSettings;
} on ErrorMethodResponseException catch (_) {
throw CanNotUpdateServerSettingsException();
throw const CanNotUpdateServerSettingsException();
}
}
}