YamingPeng100 / asmack

Automatically exported from code.google.com/p/asmack
Other
0 stars 0 forks source link

Throw a subclass of XmppException when authentication fails because of wrong credentials #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment it's only possible to determine cause of authentication failure 
is 
via inspecting exception message. This is a bit inconvenient. Throwing a 
specific 
subclass of XmppException makes more sense.

On these devices authentication often fails beacuse of network failure, timeout 
or 
similar results. Hence it's more (compared to desktop version) important to 
correctly determine failure reason and take proper action. For example warn the 
user his credentials are wrong.

Original issue reported on code.google.com by hakan.er...@gmail.com on 14 Apr 2010 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by rtreffer@gmail.com on 3 May 2010 at 9:11