UsernameExistsException constructor

const UsernameExistsException(
  1. String message, {
  2. String? recoverySuggestion,
  3. String? underlyingException,
})

Exception thrown when the requested service encounters a user name that already exists in the user pool.

Implementation

const UsernameExistsException(
  String message, {
  String? recoverySuggestion,
  String? underlyingException,
}) : super(
        message,
        recoverySuggestion: recoverySuggestion,
        underlyingException: underlyingException,
      );