axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/samples/stock GetQuote.java
Date Thu, 14 Jun 2001 16:31:06 GMT
gdaniels    01/06/14 09:31:06

  Modified:    java/samples/stock GetQuote.java
  Log:
  Don't bother printing a stack trace if it's an AxisFault, just dump it.
  
  We might want to alter dump() to know if it's a "local" or "remote"
  fault, and print the stack trace if it's local.  If it's remote, we know
  precisely where the fault will always appear to come from (i.e.
  SOAPFaultElement.java:110).
  
  Revision  Changes    Path
  1.21      +4 -2      xml-axis/java/samples/stock/GetQuote.java
  
  Index: GetQuote.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/GetQuote.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- GetQuote.java	2001/06/01 06:47:55	1.20
  +++ GetQuote.java	2001/06/14 16:31:02	1.21
  @@ -135,8 +135,10 @@
           System.out.println(gq.symbol + ": " + val);
       }
       catch( Exception e ) {
  -      if ( e instanceof AxisFault ) ((AxisFault)e).dump();
  -      e.printStackTrace();
  +        if ( e instanceof AxisFault ) {
  +            ((AxisFault)e).dump();
  +        } else
  +            e.printStackTrace();
       }
     }
     
  
  
  

Mime
View raw message