avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/util ExceptionHelper.java
Date Tue, 17 Dec 2002 04:59:08 GMT
mcconnell    2002/12/16 20:59:08

  Modified:    assembly/src/java/org/apache/avalon/assembly/util
                        ExceptionHelper.java
  Log:
  Impoved presentation of cascading exceptions.
  
  Revision  Changes    Path
  1.2       +5 -3      avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/util/ExceptionHelper.java
  
  Index: ExceptionHelper.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/util/ExceptionHelper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExceptionHelper.java	29 Nov 2002 13:04:56 -0000	1.1
  +++ ExceptionHelper.java	17 Dec 2002 04:59:08 -0000	1.2
  @@ -159,9 +159,10 @@
           }
           else
           {
  -            buffer.append( "\nException: " + e.toString() );
  +            buffer.append( "\n\nException: " + e.getClass().getName() );
  +            buffer.append( "\n" + e.getMessage() );
               packCause( buffer, getCause( e ) ).toString();
  -            buffer.append( "\n==================================================================="
);
  +            buffer.append( "\n\n==================================================================="
);
           }
           Throwable root = getLastThrowable( e );
           if( root != null )
  @@ -182,7 +183,8 @@
           {
               return buffer;
           }
  -        buffer.append( "\nCause: " + cause.toString() );
  +        buffer.append( "\n\nCause: " + cause.getClass().getName() );
  +        buffer.append( "\n" + cause.getMessage() );
           return packCause( buffer, getCause( cause ) );
       }
   
  
  
  

--
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