[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/ident ...

David Lloyd david.lloyd at jboss.com
Tue Jul 10 13:23:53 EDT 2007


  User: dlloyd  
  Date: 07/07/10 13:23:53

  Modified:    src/main/org/jboss/remoting/ident  Identity.java
  Log:
  Fix sucky error message (JBREM-769)
  
  Revision  Changes    Path
  1.6       +5 -2      JBossRemoting/src/main/org/jboss/remoting/ident/Identity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Identity.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/ident/Identity.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- Identity.java	1 Jun 2006 15:57:05 -0000	1.5
  +++ Identity.java	10 Jul 2007 17:23:53 -0000	1.6
  @@ -42,7 +42,7 @@
    * Identity is used to uniquely identify a JBoss server instance on the network.
    *
    * @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    */
   public class Identity implements Serializable
   {
  @@ -208,7 +208,10 @@
         }
         catch(Exception ex)
         {
  -         throw new RuntimeException("Exception creating identity: " + ex.getMessage());
  +         String type = ex.getClass().getName();
  +         final RuntimeException rex = new RuntimeException("Exception creating identity: " + type + ": " + ex.getMessage());
  +         rex.setStackTrace(ex.getStackTrace());
  +         throw rex;
         }
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list