refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user