Reputation: 133
Im using Firebase Email and Password Auth to login to my App I made a simple login form and register form as usual
My Problem is I dont know how to handle with exceptions... There is this Log where I can see if e.g. the Email is in a bad format.
But I want that if an error occurs i catch it and print it out, a specific test for normal exceptions like email wrong, password wrong etc
Also I ask my self, if there is a list of all these exceptions, because i cant find any.
Upvotes: 1
Views: 1435
Reputation: 317497
You can find the list of possible errors produced by Firebase Auth APIs in the API documentation. They are all subclasses of FirebaseAuthException:
FirebaseAuthActionCodeException, FirebaseAuthEmailException, FirebaseAuthInvalidCredentialsException, FirebaseAuthInvalidUserException, FirebaseAuthMultiFactorException, FirebaseAuthRecentLoginRequiredException, FirebaseAuthUserCollisionException, FirebaseAuthWebException
See also:
Upvotes: 3