changeset 1921:fa12c4801f74

2009-05-25 Omair Majid <omajid@redhat.com> * netx/net/sourceforge/jnlp/resources/Messages.properties: Add RUnexpected to show generic unexpected information. * netx/net/sourceforge/jnlp/runtime/Boot.java (run): Show more information about the fatal exception.
author Omair Majid <omajid@redhat.com>
date Mon, 25 May 2009 13:54:44 -0400
parents 9a93570b7b06
children 0c18ad4aa0cf
files ChangeLog netx/net/sourceforge/jnlp/resources/Messages.properties netx/net/sourceforge/jnlp/runtime/Boot.java
diffstat 3 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 22 10:13:16 2009 -0400
+++ b/ChangeLog	Mon May 25 13:54:44 2009 -0400
@@ -1,3 +1,10 @@
+2009-05-25  Omair Majid  <omajid@redhat.com>
+
+	* netx/net/sourceforge/jnlp/resources/Messages.properties: Add
+	RUnexpected to show generic unexpected information.
+	* netx/net/sourceforge/jnlp/runtime/Boot.java (run): Show more
+	information about the fatal exception.
+
 2009-05-22  Omair Majid  <omajid@redhat.com>
 
 	* netx/net/sourceforge/jnlp/JNLPFile.java (parse): Fix comment to reflect 
--- a/netx/net/sourceforge/jnlp/resources/Messages.properties	Fri May 22 10:13:16 2009 -0400
+++ b/netx/net/sourceforge/jnlp/resources/Messages.properties	Mon May 25 13:54:44 2009 -0400
@@ -105,6 +105,7 @@
 RCantReplaceSM=Changing the SecurityManager is not allowed.
 RDenyStopped=Stopped applications have no permissions.
 RExitNoApp=Can not exit the JVM because the current application cannot be determined.
+RUnexpected=Unexpected {0} at {1}
 
 # Boot options, message should be shorter than this ---------------->
 BOUsage=javaws [-run-options] <jnlp file>
--- a/netx/net/sourceforge/jnlp/runtime/Boot.java	Fri May 22 10:13:16 2009 -0400
+++ b/netx/net/sourceforge/jnlp/runtime/Boot.java	Mon May 25 13:54:44 2009 -0400
@@ -209,7 +209,8 @@
             if (JNLPRuntime.isDebug())
                 ex.printStackTrace();
 
-            fatalError(ex.getMessage());
+            fatalError(JNLPRuntime.getMessage("RUnexpected", 
+                        new Object[] {ex.toString(), ex.getStackTrace()[0]} ));
         }
 
         return null;