CredentialsManagerException.fromPlatformException constructor

CredentialsManagerException.fromPlatformException(
  1. PlatformException e
)

Fectory method that transforms a PlatformException to a CredentialsManagerException.

Implementation

factory CredentialsManagerException.fromPlatformException(
    final PlatformException e) {
  final Map<String, dynamic> errorDetails = e.detailsMap;

  return CredentialsManagerException(e.code, e.messageString, errorDetails);
}