fix(sentry): resolve minified exception types on web release
This commit is contained in:
@@ -7,6 +7,9 @@ abstract class PermissionException with EquatableMixin implements Exception {
|
||||
|
||||
String get exceptionName;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message];
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
if (message != null) {
|
||||
|
||||
@@ -110,17 +110,16 @@ class NoNetworkError extends RemoteException {
|
||||
}
|
||||
|
||||
class RefreshTokenFailedException extends RemoteException {
|
||||
final int? statusCode;
|
||||
|
||||
RefreshTokenFailedException({
|
||||
super.message =
|
||||
'Refresh Token failed with 400 Bad Request. The session is invalid/revoked.',
|
||||
this.statusCode = 400,
|
||||
super.code = 400,
|
||||
});
|
||||
|
||||
@override
|
||||
String get exceptionName => 'RefreshTokenFailedException';
|
||||
|
||||
@override
|
||||
String toString() => "$exceptionName(status: $statusCode): $message";
|
||||
String toString() => "$exceptionName(status: $code): $message";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user