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
@@ -110,7 +110,7 @@ class LabelApi
final labelId = label.id;
if (labelId == null) {
throw LabelIdIsNull();
throw const LabelIdIsNull();
}
final method = SetLabelMethod(accountId)..addDestroy({labelId});
@@ -1,14 +1,14 @@
import 'package:core/domain/exceptions/app_base_exception.dart';
class LabelKeywordIsNull extends AppBaseException {
LabelKeywordIsNull([super.message = 'Label keyword is null']);
const LabelKeywordIsNull([super.message = 'Label keyword is null']);
@override
String get exceptionName => 'LabelKeywordIsNull';
}
class LabelIdIsNull extends AppBaseException {
LabelIdIsNull([super.message = 'Label id is null']);
const LabelIdIsNull([super.message = 'Label id is null']);
@override
String get exceptionName => 'LabelIdIsNull';
@@ -93,7 +93,7 @@ extension HandleLabelActionTypeExtension on LabelController {
if (labelId == null) {
consumeState(
Stream.value(Left(EditLabelFailure(LabelIdIsNull()))),
Stream.value(Left(EditLabelFailure(const LabelIdIsNull()))),
);
return;
}