refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -1 +1,8 @@
|
||||
class NullInboxUnreadCountException implements Exception {}
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class NullInboxUnreadCountException extends AppBaseException {
|
||||
const NullInboxUnreadCountException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'NullInboxUnreadCountException';
|
||||
}
|
||||
|
||||
@@ -1 +1,8 @@
|
||||
class NullQuotaException implements Exception {}
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class NullQuotaException extends AppBaseException {
|
||||
NullQuotaException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'NullQuotaException';
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ class MailboxMenuRobot extends CoreRobot {
|
||||
.toInt();
|
||||
|
||||
if (inboxCount == null) {
|
||||
throw NullInboxUnreadCountException();
|
||||
throw const NullInboxUnreadCountException();
|
||||
}
|
||||
|
||||
return inboxCount;
|
||||
|
||||
Reference in New Issue
Block a user