refactor(sentry): standardize exceptions to prevent Sentry minification

This commit is contained in:
dab246
2026-02-24 15:40:07 +07:00
committed by Dat H. Pham
parent 296548a781
commit 2e8a11e7eb
75 changed files with 1128 additions and 309 deletions
@@ -1,23 +1,85 @@
class NotSupportFCMException implements Exception {}
import 'package:core/domain/exceptions/app_base_exception.dart';
class NotLoadedFCMTokenException implements Exception {}
class NotSupportFCMException extends AppBaseException {
NotSupportFCMException([super.message]);
class NotFoundStateToRefreshException implements Exception {}
@override
String get exceptionName => 'NotSupportFCMException';
}
class NotFoundEmailDeliveryStateException implements Exception {}
class NotLoadedFCMTokenException extends AppBaseException {
NotLoadedFCMTokenException([super.message]);
class NotFoundFirebaseRegistrationForDeviceException implements Exception {}
@override
String get exceptionName => 'NotLoadedFCMTokenException';
}
class NotFoundFirebaseRegistrationCacheException implements Exception {}
class NotFoundStateToRefreshException extends AppBaseException {
NotFoundStateToRefreshException([super.message]);
class NotFoundEmailStateException implements Exception {}
@override
String get exceptionName => 'NotFoundStateToRefreshException';
}
class NotFoundNewReceiveEmailException implements Exception {}
class NotFoundEmailDeliveryStateException extends AppBaseException {
NotFoundEmailDeliveryStateException([super.message]);
class EmailStateNoChangeException implements Exception {}
@override
String get exceptionName => 'NotFoundEmailDeliveryStateException';
}
class NotFoundFirebaseRegistrationCreatedException implements Exception {}
class NotFoundFirebaseRegistrationForDeviceException extends AppBaseException {
NotFoundFirebaseRegistrationForDeviceException([super.message]);
class NotFoundFirebaseRegistrationUpdatedException implements Exception {}
@override
String get exceptionName => 'NotFoundFirebaseRegistrationForDeviceException';
}
class NotFoundFirebaseRegistrationDestroyedException implements Exception {}
class NotFoundFirebaseRegistrationCacheException extends AppBaseException {
NotFoundFirebaseRegistrationCacheException([super.message]);
@override
String get exceptionName => 'NotFoundFirebaseRegistrationCacheException';
}
class NotFoundEmailStateException extends AppBaseException {
NotFoundEmailStateException([super.message]);
@override
String get exceptionName => 'NotFoundEmailStateException';
}
class NotFoundNewReceiveEmailException extends AppBaseException {
NotFoundNewReceiveEmailException([super.message]);
@override
String get exceptionName => 'NotFoundNewReceiveEmailException';
}
class EmailStateNoChangeException extends AppBaseException {
EmailStateNoChangeException([super.message]);
@override
String get exceptionName => 'EmailStateNoChangeException';
}
class NotFoundFirebaseRegistrationCreatedException extends AppBaseException {
NotFoundFirebaseRegistrationCreatedException([super.message]);
@override
String get exceptionName => 'NotFoundFirebaseRegistrationCreatedException';
}
class NotFoundFirebaseRegistrationUpdatedException extends AppBaseException {
NotFoundFirebaseRegistrationUpdatedException([super.message]);
@override
String get exceptionName => 'NotFoundFirebaseRegistrationUpdatedException';
}
class NotFoundFirebaseRegistrationDestroyedException extends AppBaseException {
NotFoundFirebaseRegistrationDestroyedException([super.message]);
@override
String get exceptionName => 'NotFoundFirebaseRegistrationDestroyedException';
}
@@ -1,7 +1,29 @@
class WebSocketPushNotSupportedException implements Exception {}
import 'package:core/domain/exceptions/app_base_exception.dart';
class WebSocketUriUnavailableException implements Exception {}
class WebSocketPushNotSupportedException extends AppBaseException {
WebSocketPushNotSupportedException([super.message]);
class WebSocketTicketUnavailableException implements Exception {}
@override
String get exceptionName => 'WebSocketPushNotSupportedException';
}
class WebSocketClosedException implements Exception {}
class WebSocketUriUnavailableException extends AppBaseException {
WebSocketUriUnavailableException([super.message]);
@override
String get exceptionName => 'WebSocketUriUnavailableException';
}
class WebSocketTicketUnavailableException extends AppBaseException {
WebSocketTicketUnavailableException([super.message]);
@override
String get exceptionName => 'WebSocketTicketUnavailableException';
}
class WebSocketClosedException extends AppBaseException {
WebSocketClosedException([super.message]);
@override
String get exceptionName => 'WebSocketClosedException';
}