PlatformOperationException constructor
PlatformOperationException({})
Creates a platform exception describing the failed operation.
Implementation
PlatformOperationException({
required this.operation,
required super.userMessage,
required super.devMessage,
this.code,
this.details,
super.cause,
super.stack,
Map<String, dynamic> metadata = const {},
super.severity,
super.isReportable,
}) : super(
metadata: {
'operation': operation,
if (code != null) 'code': code,
if (details != null) 'details': details,
...metadata,
},
);