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,17 +1,29 @@
class CannotCreatePublicAssetException implements Exception {
const CannotCreatePublicAssetException();
import 'package:core/domain/exceptions/app_base_exception.dart';
class CannotCreatePublicAssetException extends AppBaseException {
const CannotCreatePublicAssetException([super.message]);
@override
String get exceptionName => 'CannotCreatePublicAssetException';
}
class PublicAssetQuotaExceededException implements Exception {
const PublicAssetQuotaExceededException({required this.message});
class PublicAssetQuotaExceededException extends AppBaseException {
const PublicAssetQuotaExceededException({String? message}) : super(message);
final String? message;
@override
String get exceptionName => 'PublicAssetQuotaExceededException';
}
class CannotDestroyPublicAssetException implements Exception {
const CannotDestroyPublicAssetException();
class CannotDestroyPublicAssetException extends AppBaseException {
const CannotDestroyPublicAssetException([super.message]);
@override
String get exceptionName => 'CannotDestroyPublicAssetException';
}
class CannotUpdatePublicAssetException implements Exception {
const CannotUpdatePublicAssetException();
}
class CannotUpdatePublicAssetException extends AppBaseException {
const CannotUpdatePublicAssetException([super.message]);
@override
String get exceptionName => 'CannotUpdatePublicAssetException';
}