refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -60,7 +60,7 @@ class FileUploader {
|
||||
} else {
|
||||
final rootIsolateToken = RootIsolateToken.instance;
|
||||
if (rootIsolateToken == null) {
|
||||
throw CanNotGetRootIsolateToken();
|
||||
throw const CanNotGetRootIsolateToken();
|
||||
}
|
||||
|
||||
return await _isolateExecutor.execute(
|
||||
|
||||
@@ -1 +1,8 @@
|
||||
class PickFileCanceledException implements Exception {}
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class PickFileCanceledException extends AppBaseException {
|
||||
PickFileCanceledException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'PickFileCanceledException';
|
||||
}
|
||||
|
||||
@@ -1 +1,8 @@
|
||||
class DataResponseIsNullException implements Exception {}
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class DataResponseIsNullException extends AppBaseException {
|
||||
DataResponseIsNullException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'DataResponseIsNullException';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user