refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ class SessionStorageComposerDatasourceImpl
|
||||
.map((entry) => ComposerCache.fromJson(jsonDecode(entry.value)))
|
||||
.toList();
|
||||
} else {
|
||||
throw NotFoundInWebSessionException();
|
||||
throw const NotFoundInWebSessionException();
|
||||
}
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
+13
-2
@@ -1,4 +1,15 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class NotFoundLinagoraEcosystem implements Exception {}
|
||||
class NotFoundLinagoraEcosystem extends AppBaseException {
|
||||
NotFoundLinagoraEcosystem([super.message]);
|
||||
|
||||
class NotFoundPaywallUrl implements Exception {}
|
||||
@override
|
||||
String get exceptionName => 'NotFoundLinagoraEcosystem';
|
||||
}
|
||||
|
||||
class NotFoundPaywallUrl extends AppBaseException {
|
||||
NotFoundPaywallUrl([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'NotFoundPaywallUrl';
|
||||
}
|
||||
|
||||
@@ -1,6 +1,22 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class NotFoundLastTimeDismissedSpamReportException implements Exception {}
|
||||
class NotFoundLastTimeDismissedSpamReportException extends AppBaseException {
|
||||
NotFoundLastTimeDismissedSpamReportException([super.message]);
|
||||
|
||||
class NotFoundSpamMailboxCachedException implements Exception {}
|
||||
@override
|
||||
String get exceptionName => 'NotFoundLastTimeDismissedSpamReportException';
|
||||
}
|
||||
|
||||
class NotFoundSpamMailboxException implements Exception {}
|
||||
class NotFoundSpamMailboxCachedException extends AppBaseException {
|
||||
NotFoundSpamMailboxCachedException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'NotFoundSpamMailboxCachedException';
|
||||
}
|
||||
|
||||
class NotFoundSpamMailboxException extends AppBaseException {
|
||||
NotFoundSpamMailboxException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'NotFoundSpamMailboxException';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user