avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application LifecycleHelper.java
Date Sat, 17 Nov 2001 11:39:10 GMT
donaldp     01/11/17 03:39:10

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        LifecycleHelper.java
  Log:
  Make error messages print out the reason as
  (MyException: MyException message.)
  rather than
  (MyException message.)
  
  as the message can be meaningless in some contexts (ie ClassNotFoundException)
  
  Revision  Changes    Path
  1.20      +4 -2      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/LifecycleHelper.java
  
  Index: LifecycleHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/LifecycleHelper.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- LifecycleHelper.java	2001/11/17 07:09:50	1.19
  +++ LifecycleHelper.java	2001/11/17 11:39:09	1.20
  @@ -389,7 +389,8 @@
        */
       private void safeFail( final String name, final int stage, final Throwable t )
       {
  -        final String reason = t.getMessage();
  +        //final String reason = t.getMessage();
  +        final String reason = t.toString();
           final String message =
               REZ.getString( "lifecycle-fail.error", name, new Integer( stage ), reason );
           getLogger().error( message );
  @@ -408,7 +409,8 @@
       private void fail( final String name, final int stage, final Throwable t )
           throws Exception
       {
  -        final String reason = t.getMessage();
  +        //final String reason = t.getMessage();
  +        final String reason = t.toString();
           final String message =
               REZ.getString( "lifecycle-fail.error", name, new Integer( stage ), reason );
           getLogger().error( message );
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message