fix(sentry): resolve minified exception types on web release
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class AddressException extends AppBaseException with EquatableMixin {
|
||||
class AddressException extends AppBaseException {
|
||||
const AddressException(super.message);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'AddressException';
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message, exceptionName];
|
||||
}
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
abstract class AppBaseException implements Exception {
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class AppBaseException with EquatableMixin implements Exception {
|
||||
final String? message;
|
||||
|
||||
const AppBaseException([this.message]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
if (message != null && message!.isNotEmpty) {
|
||||
if (message?.isNotEmpty == true) {
|
||||
return '$exceptionName: $message';
|
||||
}
|
||||
return exceptionName;
|
||||
}
|
||||
|
||||
String get exceptionName;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message];
|
||||
}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class DownloadFileException extends AppBaseException
|
||||
with EquatableMixin {
|
||||
abstract class DownloadFileException extends AppBaseException {
|
||||
const DownloadFileException(super.message);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message, exceptionName];
|
||||
}
|
||||
|
||||
class CommonDownloadFileException extends DownloadFileException {
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class FileException extends AppBaseException with EquatableMixin {
|
||||
abstract class FileException extends AppBaseException {
|
||||
const FileException(super.message);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message, exceptionName];
|
||||
}
|
||||
|
||||
class NotFoundFileInFolderException extends FileException {
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
import 'package:core/domain/exceptions/app_base_exception.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class PlatformException extends AppBaseException with EquatableMixin {
|
||||
class PlatformException extends AppBaseException {
|
||||
const PlatformException(super.message);
|
||||
|
||||
@override
|
||||
String get exceptionName => 'PlatformException';
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message, exceptionName];
|
||||
}
|
||||
|
||||
class NoSupportPlatformException extends PlatformException {
|
||||
|
||||
Reference in New Issue
Block a user