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,3 +1,15 @@
class SendingEmailCanceledException implements Exception {}
import 'package:core/domain/exceptions/app_base_exception.dart';
class SavingEmailToDraftsCanceledException implements Exception {}
class SendingEmailCanceledException extends AppBaseException {
SendingEmailCanceledException([super.message]);
@override
String get exceptionName => 'SendingEmailCanceledException';
}
class SavingEmailToDraftsCanceledException extends AppBaseException {
SavingEmailToDraftsCanceledException([super.message]);
@override
String get exceptionName => 'SavingEmailToDraftsCanceledException';
}
@@ -1,10 +1,12 @@
import 'package:jmap_dart_client/jmap/core/error/set_error.dart';
import 'package:jmap_dart_client/jmap/core/id.dart';
import 'package:core/domain/exceptions/app_base_exception.dart';
class SetMethodException implements Exception {
class SetMethodException extends AppBaseException {
final Map<Id, SetError> mapErrors;
SetMethodException(this.mapErrors);
}
SetMethodException(this.mapErrors) : super('Errors: $mapErrors');
@override
String get exceptionName => 'SetMethodException';
}