jstrachan    2002/10/30 11:10:48

  Modified:    jelly/src/java/org/apache/commons/jelly JellyException.java
  Log:
  Tidied up the exception handling somewhat
  
  Revision  Changes    Path
  1.11      +15 -6     
jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/JellyException.java
  
  Index: JellyException.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/JellyException.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JellyException.java       30 Oct 2002 13:19:57 -0000      1.10
  +++ JellyException.java       30 Oct 2002 19:10:48 -0000      1.11
  @@ -7,7 +7,7 @@
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -219,4 +219,13 @@
               }
           }
       }
  +
  +     public void printStackTrace() {
  +             super.printStackTrace();
  +             if (cause != null) {
  +                     System.out.println("Root cause");
  +                     cause.printStackTrace();
  +             }
  +     }
  +
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to