StorageException constructor
StorageException({})
Creates a storage exception describing the failed operation and optional key.
Implementation
StorageException({
required super.userMessage,
required super.devMessage,
required this.operation,
this.key,
this.storageType,
super.cause,
super.stack,
Map<String, dynamic> metadata = const {},
super.severity,
super.isReportable,
}) : super(
metadata: {
'operation': operation,
if (key != null) 'key': key,
if (storageType != null) 'storageType': storageType,
...metadata,
},
);