I'm trying to catch a login exception thrown by the class that readerAccount belongs to in the code below.
while(!readerAccount.isAuthenticated()) {
try {
readerAccount.login();
} catch(AuthenticationException e) {
cmDialog.show();
Toast.makeText(this.mCtx, "login failed", Toast.LENGTH_SHORT).show();
Log.w("Google Reader API","login failed");
continue;
}
}
However, the only part of the catch statement that happens is is the Log.w() function. I was under the impression that during a catch statement, you have the opportunity to recover from errors, but the program blacks out the screen altogether and the dialog is not displayed, nor is the Toast. What's going on here?