axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject cvs commit: ws-axis/c/src/engine Axis.cpp
Date Tue, 06 Jul 2004 06:46:36 GMT
sanjaya     2004/07/05 23:46:36

  Modified:    c/src/engine Axis.cpp
  Log:
  handled exception situation in loading the wsdd
  
  Revision  Changes    Path
  1.63      +13 -1     ws-axis/c/src/engine/Axis.cpp
  
  Index: Axis.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/Axis.cpp,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- Axis.cpp	4 Jul 2004 12:49:16 -0000	1.62
  +++ Axis.cpp	6 Jul 2004 06:46:36 -0000	1.63
  @@ -41,6 +41,7 @@
   #include <axis/server/Packet.h>
   #include <string>
   #include <map>
  +#include <iostream>
   
   #include "../soap/SoapFault.h"
   #include "../soap/URIMapping.h"
  @@ -268,8 +269,19 @@
                   return AXIS_FAIL;
               }
   #endif
  -            if (AXIS_SUCCESS != g_pWSDDDeployment->loadWSDD (pWsddPath))
  +            try
  +            {            
  +                if (AXIS_SUCCESS != g_pWSDDDeployment->loadWSDD (pWsddPath))
                       return AXIS_FAIL;
  +            }
  +            catch (exception& e)
  +            {
  +                cout<< e.what();
  +                cout<< "\n";
  +                cout<< "Axis c++: An exception occured while loading the wsdd\n";
  +                exit(1);
  +            }
  +
           }
           else
           {
  
  
  

Mime
View raw message