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/src/org/apache/axis SOAPPart.java
Date Thu, 31 Jan 2002 22:21:11 GMT
gdaniels    02/01/31 14:21:11

  Modified:    java/src/org/apache/axis SOAPPart.java
  Log:
  When you write utility functions, it's a good idea to... oh, I don't know...
  
  USE THEM??
  
  :)
  
  Revision  Changes    Path
  1.8       +1 -6      xml-axis/java/src/org/apache/axis/SOAPPart.java
  
  Index: SOAPPart.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/SOAPPart.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SOAPPart.java	31 Jan 2002 21:36:48 -0000	1.7
  +++ SOAPPart.java	31 Jan 2002 22:21:11 -0000	1.8
  @@ -330,12 +330,7 @@
               try {
                   env.output(new SerializationContextImpl(writer, getMessage().getMessageContext()));
               } catch (Exception e) {
  -                AxisFault fault;
  -                if (e instanceof AxisFault) {
  -                    fault = (AxisFault)e;
  -                } else {
  -                    fault = new AxisFault(e);
  -                }
  +                AxisFault fault = AxisFault.makeFault(e);
                   // Start over, write the fault...
                   writer = new StringWriter();
                   try {
  
  
  

Mime
View raw message