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