AuthException constructor
AuthException({})
Creates an auth exception with optional vendor-specific metadata.
Implementation
AuthException({
required super.userMessage,
String? devMessage,
this.errorCode,
this.provider,
super.cause,
super.stack,
Map<String, dynamic> metadata = const {},
super.severity,
super.isReportable,
}) : super(
devMessage: devMessage ?? userMessage,
metadata: {
if (errorCode != null) 'errorCode': errorCode,
if (provider != null) 'provider': provider,
...metadata,
},
);