hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-hivemind/library/src/java/org/apache/hivemind/lib/factory FactoryMessages.java
Date Fri, 18 Jun 2004 13:49:16 GMT
hlship      2004/06/18 06:49:16

  Modified:    library/src/java/org/apache/hivemind/lib/factory
                        FactoryMessages.java
  Log:
  Change MessageFormatter to automatically convert Throwable instances into their message,
or their class name.
  
  Revision  Changes    Path
  1.5       +1 -4      jakarta-hivemind/library/src/java/org/apache/hivemind/lib/factory/FactoryMessages.java
  
  Index: FactoryMessages.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/library/src/java/org/apache/hivemind/lib/factory/FactoryMessages.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FactoryMessages.java	17 Jun 2004 15:16:12 -0000	1.4
  +++ FactoryMessages.java	18 Jun 2004 13:49:16 -0000	1.5
  @@ -55,10 +55,7 @@
   
       public static String unableToInstantiate(Class objectClass, Throwable cause)
       {
  -        return _formatter.format(
  -            "unable-to-instantiate",
  -            objectClass.getName(),
  -            _formatter.extractMessage(cause));
  +        return _formatter.format("unable-to-instantiate", objectClass.getName(), cause);
       }
   
       public static String invalidBeanTranslatorFormat(String inputValue)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message