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 AxisFault.java
Date Tue, 12 Feb 2002 22:25:25 GMT
gdaniels    02/02/12 14:25:25

  Modified:    java/src/org/apache/axis/transport/http AxisServlet.java
               java/src/org/apache/axis AxisFault.java
  Log:
  Do a better job of printing errors on HTTP GET requests.
  
  Revision  Changes    Path
  1.79      +3 -2      xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -r1.78 -r1.79
  --- AxisServlet.java	8 Feb 2002 22:25:01 -0000	1.78
  +++ AxisServlet.java	12 Feb 2002 22:25:25 -0000	1.79
  @@ -206,7 +206,7 @@
                           JavaUtils.getMessage("error00") + "</h2>");
                   writer.println("<p>" +
                           JavaUtils.getMessage("somethingWrong00") + "</p>");
  -                writer.println("<pre>Fault - " + fault + " </pre>");
  +                writer.println("<pre>" + fault.dumpToString() + " </pre>");
                   return;
               }
           }
  @@ -363,7 +363,8 @@
                           JavaUtils.getMessage("error00") + "</h2>");
                   writer.println("<p>" +
                           JavaUtils.getMessage("somethingWrong00") + "</p>");
  -                writer.println("<pre>Fault - " + fault + " </pre>");
  +                writer.println("<pre>" + fault.dumpToString() + 
  +                               " </pre>");
               } catch (Exception e) {
                   res.setContentType("text/html");
                   writer.println("<h2>" +
  
  
  
  1.39      +7 -2      xml-axis/java/src/org/apache/axis/AxisFault.java
  
  Index: AxisFault.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisFault.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- AxisFault.java	6 Dec 2001 17:09:40 -0000	1.38
  +++ AxisFault.java	12 Feb 2002 22:25:25 -0000	1.39
  @@ -213,6 +213,11 @@
       }
       
       public void dump() {
  +        System.out.println(dumpToString());
  +    }
  +    
  +    public String dumpToString()
  +    {
           String details = new String();
           if (faultDetails != null) {
               for (int i=0; i < faultDetails.size(); i++) {
  @@ -222,11 +227,11 @@
               }
           }
           
  -        System.out.println( "AxisFault\n" +
  +        return "AxisFault\n" +
                   "  faultCode: " + faultCode + "\n" +
                   "  faultString: " + faultString + "\n" +
                   "  faultActor: " + faultActor + "\n" +
  -                "  faultDetail: " + details + "\n"  );
  +                "  faultDetail: " + details + "\n";
       }
   
       public void setFaultCode(QFault code) {
  
  
  

Mime
View raw message