Catch Incorrect Password

cusax-fix
Damian Minkov 20 years ago
parent 15736655e0
commit 957df027aa

@ -13,6 +13,7 @@
import net.java.sip.communicator.util.*;
import net.sf.jml.*;
import net.sf.jml.event.*;
import net.sf.jml.exception.*;
import net.sf.jml.impl.*;
/**
@ -435,7 +436,14 @@ public void logout(MsnMessenger msnMessenger)
public void exceptionCaught(MsnMessenger msnMessenger, Throwable throwable)
{
logger.error("Error in Msn lib ", throwable);
if(throwable instanceof IncorrectPasswordException)
fireRegistrationStateChanged(
getRegistrationState(),
RegistrationState.UNREGISTERED,
RegistrationStateChangeEvent.REASON_AUTHENTICATION_FAILED,
"Incorrect Password");
else
logger.error("Error in Msn lib ", throwable);
}
}
}

Loading…
Cancel
Save