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
@@ -226,7 +226,7 @@ class FileUploader {
charset: fileCharset);
} else {
logWarning('FileUploader::_parsingResponse(): DataResponseIsNullException');
throw DataResponseIsNullException();
throw const DataResponseIsNullException();
}
}
}
@@ -1,7 +1,7 @@
import 'package:core/domain/exceptions/app_base_exception.dart';
class PickFileCanceledException extends AppBaseException {
PickFileCanceledException([super.message]);
const PickFileCanceledException([super.message]);
@override
String get exceptionName => 'PickFileCanceledException';
@@ -1,7 +1,7 @@
import 'package:core/domain/exceptions/app_base_exception.dart';
class DataResponseIsNullException extends AppBaseException {
DataResponseIsNullException([super.message]);
const DataResponseIsNullException([super.message]);
@override
String get exceptionName => 'DataResponseIsNullException';
@@ -29,7 +29,7 @@ class LocalFilePickerInteractor {
.toList();
yield Right<Failure, Success>(LocalFilePickerSuccess(listFileInfo));
} else {
yield Left<Failure, Success>(LocalFilePickerFailure(PickFileCanceledException()));
yield Left<Failure, Success>(LocalFilePickerFailure(const PickFileCanceledException()));
}
} catch (exception) {
yield Left<Failure, Success>(LocalFilePickerFailure(exception));
@@ -26,7 +26,7 @@ class LocalImagePickerInteractor {
final fileInfo = filePickerResult!.files.first.toFileInfo();
yield Right<Failure, Success>(LocalImagePickerSuccess(fileInfo));
} else {
yield Left<Failure, Success>(LocalImagePickerFailure(PickFileCanceledException()));
yield Left<Failure, Success>(LocalImagePickerFailure(const PickFileCanceledException()));
}
} catch (exception) {
yield Left<Failure, Success>(LocalImagePickerFailure(exception));