refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -1,8 +1,29 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
|
||||
class NotFoundSessionException implements Exception {}
|
||||
class NotFoundSessionException extends AppBaseException {
|
||||
NotFoundSessionException([super.message]);
|
||||
|
||||
class NotFoundAccountIdException implements Exception {}
|
||||
@override
|
||||
String get exceptionName => 'NotFoundSessionException';
|
||||
}
|
||||
|
||||
class NotFoundContextException implements Exception {}
|
||||
class NotFoundAccountIdException extends AppBaseException {
|
||||
NotFoundAccountIdException([super.message]);
|
||||
|
||||
class ParametersIsNullException implements Exception {}
|
||||
@override
|
||||
String get exceptionName => 'NotFoundAccountIdException';
|
||||
}
|
||||
|
||||
class NotFoundContextException extends AppBaseException {
|
||||
NotFoundContextException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'NotFoundContextException';
|
||||
}
|
||||
|
||||
class ParametersIsNullException extends AppBaseException {
|
||||
ParametersIsNullException([super.message]);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'ParametersIsNullException';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user