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