[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/login/LoginManager.java

yanas at dev.java.net yanas at dev.java.net
Thu Apr 12 15:22:32 CEST 2007


User: yanas   
Date: 2007-04-12 13:22:32+0000
Log:
 catch RuntimeExceptions when registering

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/login/
===============================================================================

File [changed]: LoginManager.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/gui/main/login/LoginManager.java?r1=1.63&r2=1.64
Delta lines:  +15 -0
--------------------
--- LoginManager.java	2007-03-12 17:52:31+0000	1.63
+++ LoginManager.java	2007-04-12 13:22:29+0000	1.64
@@ -508,6 +508,21 @@
                             protocolProvider.getAccountID().getUserID(),
                             protocolProvider.getAccountID().getService()
                         }).getText(),
+                    ex,
+                    Messages.getI18NString("error").getText()).showDialog();
+
+                mainFrame.getStatusPanel().updateStatus(protocolProvider);
+            }
+            catch (Throwable ex)
+            {
+                logger.error("Failed to register protocol provider. ", ex);
+                
+                new ErrorDialog(mainFrame,
+                        Messages.getI18NString("loginNotSucceeded",
+                            new String[]{
+                                protocolProvider.getAccountID().getUserID(),
+                                protocolProvider.getAccountID().getService()
+                            }).getText(),
                     Messages.getI18NString("error").getText()).showDialog();
 
                 mainFrame.getStatusPanel().updateStatus(protocolProvider);




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list