title: How to Handle Firebase Auth exceptions on flutter
body: <p>Please does anyone know how to catch firebase Auth exceptions on flutter and display them?</p>
  
  <p>Note: I am not interested in the console (catcherror((e) print(e))</p>
  
  <p>I need something that is more effective, e.g " user doesn't exist" So that I can then pass it to a string and display it.</p>
  
  <p>Been dealing with this for months.</p>
  
  <p>Thanks in advance.</p>
  
  <p>I have tried replacing print(e) with // errorMessage=e.toString(); and then passing it to a function, all efforts have been futile.</p>
  
  <pre><code>    FirebaseAuth.instance
                .signInWithEmailAndPassword(email: emailController.text, password: passwordController.text)
                .then((FirebaseUser user) {
                  _isInAsyncCall=false;
              Navigator.of(context).pushReplacementNamed("/TheNextPage");
  
            }).catchError((e) {
             // errorMessage=e.toString();
              print(e);
              _showDialog(errorMessage);
  
              //exceptionNotice();
              //print(e);
  </code></pre>
  
  <p>I want to be able to extract the exception message and pass the exception message to a dialog that I can then display to the user.</p>