You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2004/06/23 06:22:24 UTC
cvs commit: ws-axis/c/src/xml/expat XMLParserExpat.cpp
damitha 2004/06/22 21:22:24
Modified: c/include/axis/server AxisException.h
c/src/common AxisConfigException.cpp AxisMessage.cpp
c/src/engine AxisEngineException.cpp
c/src/soap AxisSoapException.cpp SoapFault.cpp
c/src/transport/axis AxisTransportException.cpp
c/src/wsdd AxisWsddException.cpp
c/src/xml AxisParseException.cpp
c/src/xml/expat XMLParserExpat.cpp
Log:
Revision Changes Path
1.23 +1 -0 ws-axis/c/include/axis/server/AxisException.h
Index: AxisException.h
===================================================================
RCS file: /home/cvs/ws-axis/c/include/axis/server/AxisException.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- AxisException.h 22 Jun 2004 11:46:16 -0000 1.22
+++ AxisException.h 23 Jun 2004 04:22:23 -0000 1.23
@@ -181,6 +181,7 @@
SERVER_TRANSPORT_BUFFER_EMPTY,
SERVER_PARSE_BUFFER_EMPTY,
SERVER_PARSE_PARSER_FAILED,
+ SERVER_PARSE_TRANSPORT_FAILED,
SERVER_TEST_EXCEPTION,
SERVER_UNKNOWN_ERROR,
1.8 +6 -3 ws-axis/c/src/common/AxisConfigException.cpp
Index: AxisConfigException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/common/AxisConfigException.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AxisConfigException.cpp 21 Jun 2004 14:00:11 -0000 1.7
+++ AxisConfigException.cpp 23 Jun 2004 04:22:24 -0000 1.8
@@ -95,13 +95,16 @@
switch(iExceptionCode)
{
case SERVER_CONFIG_TRANSPORT_CONF_FAILED:
- m_sMessage = "Transport layer is not configured properly";
+ m_sMessage = "AxisConfigException:Transport layer is not" \
+ " configured properly";
break;
case SERVER_CONFIG_LIBRARY_PATH_EMPTY:
- m_sMessage = "Library path is empty(Not in server.wsdd file)";
+ m_sMessage = "AxisConfigException:Library path is empty(Not in" \
+ " server.wsdd file)";
break;
default:
- m_sMessage = "Unknown Axis C++ Configuration Exception";
+ m_sMessage = "AxisConfigException:Unknown Axis C++" \
+ " Configuration Exception";
}
return m_sMessage;
}
1.4 +66 -41 ws-axis/c/src/common/AxisMessage.cpp
Index: AxisMessage.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/common/AxisMessage.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AxisMessage.cpp 13 Jun 2004 11:26:59 -0000 1.3
+++ AxisMessage.cpp 23 Jun 2004 04:22:24 -0000 1.4
@@ -34,127 +34,152 @@
m_sMessage = "Cannot deserialize the requested element";
break;
case SERVER_CONFIG_TRANSPORT_CONF_FAILED:
- m_sMessage = "Transport layer is not configured properly";
+ m_sMessage = "AxisConfigException:Transport layer is not" \
+ " configured properly";
break;
case SERVER_CONFIG_LIBRARY_PATH_EMPTY:
- m_sMessage = "Library path is empty(Not in server.wsdd file)";
+ m_sMessage = "AxisConfigException:Library path is empty(Not" \
+ " in server.wsdd file)";
break;
case SOAP_VERSION_MISMATCH :
- m_sMessage = "Soap Version mismatch fault occured";
+ m_sMessage = "AxisSoapException:Soap Version mismatch fault" \
+ " occured";
break;
case SOAP_MUST_UNDERSTAND:
- m_sMessage = "Soap Must understand fault occured";
+ m_sMessage = "AxisSoapException:Soap Must understand fault" \
+ " occured";
break;
case CLIENT_SOAP_MESSAGE_INCOMPLETE:
- m_sMessage = "Received message is incomplete";
+ m_sMessage = "AxisSoapException:Received message is incomplete";
break;
case CLIENT_SOAP_SOAP_ACTION_EMTPY:
- m_sMessage = "Soap action is empty";
+ m_sMessage = "AxisSoapException:Soap action is empty";
break;
case CLIENT_SOAP_SOAP_CONTENT_ERROR:
- m_sMessage = "Received content is faulty";
+ m_sMessage = "AxisSoapException:Received content is faulty";
break;
case CLIENT_SOAP_NO_SOAP_METHOD:
- m_sMessage = "Request method is not a soap method";
+ m_sMessage = "AxisSoapException:Request method is not a soap" \
+ " method";
break;
case CLIENT_SOAP_CONTENT_NOT_SOAP:
- m_sMessage = "Content is not a valid soap message";
+ m_sMessage = "AxisSoapException:Content is not a valid soap" \
+ " message";
break;
case CLIENT_WSDD_SERVICE_NOT_FOUND:
- m_sMessage = "Requested service not found";
+ m_sMessage = "AxisWsddException:Requested service not found";
break;
case CLIENT_WSDD_METHOD_NOT_ALLOWED:
- m_sMessage = "Requested method is not allowed";
+ m_sMessage = "AxisWsddException:Requested method is not allowed";
break;
case CLIENT_WSDD_PARA_TYPE_MISMATCH:
- m_sMessage = "Parameter type mismatch";
+ m_sMessage = "AxisWsddException:Parameter type mismatch";
break;
case SERVER_WSDD_NO_HANDLERS_CONFIGURED:
- m_sMessage = "No handlers configured in server.wsdd";
+ m_sMessage = "AxisWsddException:No handlers configured in" \
+ " server.wsdd";
break;
case SERVER_ENGINE_COULD_NOT_LOAD_SRV:
- m_sMessage = "Could not load service";
+ m_sMessage = "AxisEngineException:Could not load service";
break;
case SERVER_ENGINE_COULD_NOT_LOAD_HDL:
- m_sMessage = "Could not load handler";
+ m_sMessage = "AxisEngineException:Could not load handler";
break;
case SERVER_ENGINE_HANDLER_FAILED:
- m_sMessage = "Handler failed";
+ m_sMessage = "AxisEngineException:Handler failed";
break;
case SERVER_ENGINE_WEBSERVICE_FAILED:
- m_sMessage = "Web Service failed";
+ m_sMessage = "AxisEngineException:Web Service failed";
break;
case SERVER_ENGINE_HANDLER_INIT_FAILED:
- m_sMessage = "Handler initialization failed";
+ m_sMessage = "AxisEngineException:Handler initialization failed";
break;
case SERVER_ENGINE_HANDLER_CREATION_FAILED:
- m_sMessage = "Handler creation failed";
+ m_sMessage = "AxisEngineException:Handler creation failed";
break;
case SERVER_ENGINE_LIBRARY_LOADING_FAILED:
- m_sMessage = "Library loading failed";
+ m_sMessage = "AxisEngineException:Library loading failed";
break;
case SERVER_ENGINE_HANDLER_NOT_LOADED:
- m_sMessage = "Handler is not loaded";
+ m_sMessage = "AxisEngineException:Handler is not loaded";
break;
case SERVER_ENGINE_HANDLER_BEING_USED:
- m_sMessage = "Handler is being used";
+ m_sMessage = "AxisEngineException:Handler is being used";
break;
case SERVER_ENGINE_GET_HANDLER_FAILED:
- m_sMessage = "Get handler failed";
+ m_sMessage = "AxisEngineException:Get handler failed";
break;
case SERVER_ENGINE_WRONG_HANDLER_TYPE:
- m_sMessage = "Wrong handler type";
+ m_sMessage = "AxisEngineException:Wrong handler type";
break;
case SERVER_TRANSPORT_RECEPTION_EXCEPTION:
- m_sMessage = "Problem occured when receiving the stream";
+ m_sMessage = "AxisTransportException:Problem occured when" \
+ " receiving the stream";
break;
case SERVER_TRANSPORT_SENDING_EXCEPTION:
- m_sMessage = "Problem occured when sending the stream";
+ m_sMessage = "AxisTransportException:Problem occured when" \
+ " sending the stream";
break;
case SERVER_TRANSPORT_HTTP_EXCEPTION:
- m_sMessage = "HTTP transport error";
+ m_sMessage = "AxisTransportException:HTTP transport error";
break;
case SERVER_TRANSPORT_PROCESS_EXCEPTION:
- m_sMessage = "HTTP Error, cannot process response message";
+ m_sMessage = "AxisTransportException:HTTP Error, cannot" \
+ " process response message";
break;
case SERVER_TRANSPORT_UNKNOWN_HTTP_RESPONSE:
- m_sMessage = "Unknow HTTP response, cannot process response message";
+ m_sMessage = "AxisTransportException:Unknow HTTP response," \
+ " cannot process response message";
break;
case SERVER_TRANSPORT_UNEXPECTED_STRING:
- m_sMessage = "Unexpected string";
+ m_sMessage = "AxisTransportException:Unexpected string";
break;
case SERVER_TRANSPORT_CHANNEL_INIT_ERROR:
- m_sMessage = "Cannot initialize a channel to the remote end";
+ m_sMessage = "AxisTransportException:Cannot initialize a channel" \
+ " to the remote end";
break;
case SERVER_TRANSPORT_SOCKET_CREATE_ERROR:
- m_sMessage = "Sockets error Couldn't create socket";
+ m_sMessage = "AxisTransportException:Sockets error Couldn't" \
+ " create socket";
break;
case SERVER_TRANSPORT_SOCKET_CONNECT_ERROR:
- m_sMessage = "Cannot open a channel to the remote end, shutting down the channel";
+ m_sMessage = "AxisTransportException:Cannot open a channel to" \
+ " the remote end, shutting down the channel";
break;
case SERVER_TRANSPORT_INVALID_SOCKET:
- m_sMessage = "Invalid socket. Socket may not be open";
+ m_sMessage = "AxisTransportException:Invalid socket. Socket may" \
+ " not be open";
break;
case SERVER_TRANSPORT_OUTPUT_STREAMING_ERROR:
- m_sMessage = "Output streaming error on Channel while writing data";
+ m_sMessage = "AxisTransportException:Output streaming error on" \
+ " Channel while writing data";
break;
case SERVER_TRANSPORT_INPUT_STREAMING_ERROR:
- m_sMessage = "Input streaming error while getting data";
+ m_sMessage = "AxisTransportException:Input streaming error while" \
+ " getting data";
break;
case SERVER_TRANSPORT_TIMEOUT_EXCEPTION:
- m_sMessage = "Channel error while waiting for timeout";
+ m_sMessage = "AxisTransportException:Channel error while waiting" \
+ " for timeout";
break;
case SERVER_TRANSPORT_TIMEOUT_EXPIRED:
- m_sMessage = "Channel error connection timeout before receving";
+ m_sMessage = "AxisTransportException:Channel error connection" \
+ " timeout before receving";
break;
case SERVER_TRANSPORT_BUFFER_EMPTY:
- m_sMessage = "Transport buffer is empty";
+ m_sMessage = "AxisTransportException:Transport buffer is empty";
break;
case SERVER_PARSE_BUFFER_EMPTY:
- m_sMessage = "Buffer received from the parser is empty";
+ m_sMessage = "AxisParseException:Buffer received from the parser" \
+ " is empty";
break;
case SERVER_PARSE_PARSER_FAILED:
- m_sMessage = "Parser failed";
+ m_sMessage = "AxisParseException:XML_STATUS_ERROR thrown from" \
+ " parser";
+ break;
+ case SERVER_PARSE_TRANSPORT_FAILED:
+ m_sMessage = "AxisParseException:Error when getting the byte" \
+ " stream from the transport";
break;
default:
m_sMessage = "Unknown Exception has occured";
1.8 +12 -12 ws-axis/c/src/engine/AxisEngineException.cpp
Index: AxisEngineException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/engine/AxisEngineException.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AxisEngineException.cpp 21 Jun 2004 14:00:11 -0000 1.7
+++ AxisEngineException.cpp 23 Jun 2004 04:22:24 -0000 1.8
@@ -93,40 +93,40 @@
switch(iExceptionCode)
{
case SERVER_ENGINE_COULD_NOT_LOAD_SRV:
- m_sMessage = "Could not load service";
+ m_sMessage = "AxisEngineException:Could not load service";
break;
case SERVER_ENGINE_COULD_NOT_LOAD_HDL:
- m_sMessage = "Could not load handler";
+ m_sMessage = "AxisEngineException:Could not load handler";
break;
case SERVER_ENGINE_HANDLER_FAILED:
- m_sMessage = "Handler failed";
+ m_sMessage = "AxisEngineException:Handler failed";
break;
case SERVER_ENGINE_WEBSERVICE_FAILED:
- m_sMessage = "Web Service failed";
+ m_sMessage = "AxisEngineException:Web Service failed";
break;
case SERVER_ENGINE_HANDLER_INIT_FAILED:
- m_sMessage = "Handler initialization failed";
+ m_sMessage = "AxisEngineException:Handler initialization failed";
break;
case SERVER_ENGINE_HANDLER_CREATION_FAILED:
- m_sMessage = "Handler creation failed";
+ m_sMessage = "AxisEngineException:Handler creation failed";
break;
case SERVER_ENGINE_LIBRARY_LOADING_FAILED:
- m_sMessage = "Library loading failed";
+ m_sMessage = "AxisEngineException:Library loading failed";
break;
case SERVER_ENGINE_HANDLER_NOT_LOADED:
- m_sMessage = "Handler is not loaded";
+ m_sMessage = "AxisEngineException:Handler is not loaded";
break;
case SERVER_ENGINE_HANDLER_BEING_USED:
- m_sMessage = "Handler is being used";
+ m_sMessage = "AxisEngineException:Handler is being used";
break;
case SERVER_ENGINE_GET_HANDLER_FAILED:
- m_sMessage = "Get handler failed";
+ m_sMessage = "AxisEngineException:Get handler failed";
break;
case SERVER_ENGINE_WRONG_HANDLER_TYPE:
- m_sMessage = "Wrong handler type";
+ m_sMessage = "AxisEngineException:Wrong handler type";
break;
default:
- m_sMessage = "Unknown Axis C++ Engine Exception";
+ m_sMessage = "AxisEngineException:Unknown Axis C++ Engine Exception";
}
return m_sMessage;
}
1.9 +8 -8 ws-axis/c/src/soap/AxisSoapException.cpp
Index: AxisSoapException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/AxisSoapException.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- AxisSoapException.cpp 21 Jun 2004 14:00:11 -0000 1.8
+++ AxisSoapException.cpp 23 Jun 2004 04:22:24 -0000 1.9
@@ -94,28 +94,28 @@
{
case SOAP_VERSION_MISMATCH :
- m_sMessage = "Soap Version mismatch fault occured";
+ m_sMessage = "AxisSoapException:Soap Version mismatch fault occured";
break;
case SOAP_MUST_UNDERSTAND:
- m_sMessage = "Soap Must understand fault occured";
+ m_sMessage = "AxisSoapException:Soap Must understand fault occured";
break;
case CLIENT_SOAP_MESSAGE_INCOMPLETE:
- m_sMessage = "Received message is incomplete";
+ m_sMessage = "AxisSoapException:Received message is incomplete";
break;
case CLIENT_SOAP_SOAP_ACTION_EMTPY:
- m_sMessage = "Soap action is empty";
+ m_sMessage = "AxisSoapException:Soap action is empty";
break;
case CLIENT_SOAP_SOAP_CONTENT_ERROR:
- m_sMessage = "Received content is faulty";
+ m_sMessage = "AxisSoapException:Received content is faulty";
break;
case CLIENT_SOAP_NO_SOAP_METHOD:
- m_sMessage = "Request method is not a soap method";
+ m_sMessage = "AxisSoapException:Request method is not a soap method";
break;
case CLIENT_SOAP_CONTENT_NOT_SOAP:
- m_sMessage = "Content is not a valid soap message";
+ m_sMessage = "AxisSoapException:Content is not a valid soap message";
break;
default:
- m_sMessage = "Unknown Soap Exception";
+ m_sMessage = "AxisSoapException:Unknown Soap Exception";
}
return m_sMessage;
}
1.30 +2 -1 ws-axis/c/src/soap/SoapFault.cpp
Index: SoapFault.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/SoapFault.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- SoapFault.cpp 14 Jun 2004 06:05:43 -0000 1.29
+++ SoapFault.cpp 23 Jun 2004 04:22:24 -0000 1.30
@@ -170,7 +170,8 @@
{"Server", "Channel error connection timeout before receving", "", ""},
{"Server", "Transport buffer is empty", "", ""},
{"Server", "Buffer received from the parser is empty", "", ""},
- {"Server", "Parser failed", "", ""},
+ {"Server", "XML_STATUS_ERROR thrown from parser", "", ""},
+ {"Server", "Error when getting the byte stream from the transport", "", ""},
{"Server", "Test exception", "", ""},
{"Server", "Unknown exception", "", ""}
1.7 +29 -16 ws-axis/c/src/transport/axis/AxisTransportException.cpp
Index: AxisTransportException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/transport/axis/AxisTransportException.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AxisTransportException.cpp 21 Jun 2004 14:00:11 -0000 1.6
+++ AxisTransportException.cpp 23 Jun 2004 04:22:24 -0000 1.7
@@ -92,53 +92,66 @@
switch(iExceptionCode)
{
case SERVER_TRANSPORT_RECEPTION_EXCEPTION:
- m_sMessage = "Problem occured when receiving the stream";
+ m_sMessage = "AxisTransportException:Problem occured when" \
+ " receiving the stream";
break;
case SERVER_TRANSPORT_SENDING_EXCEPTION:
- m_sMessage = "Problem occured when sending the stream";
+ m_sMessage = "AxisTransportException:Problem occured when sending" \
+ " the stream";
break;
case SERVER_TRANSPORT_HTTP_EXCEPTION:
- m_sMessage = "HTTP transport error";
+ m_sMessage = "AxisTransportException:HTTP transport error";
break;
case SERVER_TRANSPORT_PROCESS_EXCEPTION:
- m_sMessage = "HTTP Error, cannot process response message";
+ m_sMessage = "AxisTransportException:HTTP Error, cannot process" \
+ " response message";
break;
case SERVER_TRANSPORT_UNKNOWN_HTTP_RESPONSE:
- m_sMessage = "Unknow HTTP response, cannot process response message";
+ m_sMessage = "AxisTransportException:Unknow HTTP response," \
+ " cannot process response message";
break;
case SERVER_TRANSPORT_UNEXPECTED_STRING:
- m_sMessage = "Unexpected string received. Most probably server " \
+ m_sMessage = "AxisTransportException:Unexpected string " \
+ "received. Most probably server " \
"returned an empty stream";
break;
case SERVER_TRANSPORT_CHANNEL_INIT_ERROR:
- m_sMessage = "Cannot initialize a channel to the remote end";
+ m_sMessage = "AxisTransportException:Cannot initialize a " \
+ "channel to the remote end";
break;
case SERVER_TRANSPORT_SOCKET_CREATE_ERROR:
- m_sMessage = "Sockets error Couldn't create socket";
+ m_sMessage = "AxisTransportException:Sockets error Couldn't" \
+ " create socket";
break;
case SERVER_TRANSPORT_SOCKET_CONNECT_ERROR:
- m_sMessage = "Cannot open a channel to the remote end, shutting down the channel";
+ m_sMessage = "AxisTransportException:Cannot open a channel to the" \
+ " remote end, shutting down the channel";
break;
case SERVER_TRANSPORT_INVALID_SOCKET:
- m_sMessage = "Invalid socket. Socket may not be open";
+ m_sMessage = "AxisTransportException:Invalid socket. Socket may" \
+ " not be open";
break;
case SERVER_TRANSPORT_OUTPUT_STREAMING_ERROR:
- m_sMessage = "Output streaming error on Channel while writing data";
+ m_sMessage = "AxisTransportException:Output streaming error on" \
+ " Channel while writing data";
break;
case SERVER_TRANSPORT_INPUT_STREAMING_ERROR:
- m_sMessage = "Input streaming error while getting data";
+ m_sMessage = "AxisTransportException:Input streaming error while" \
+ " getting data";
break;
case SERVER_TRANSPORT_TIMEOUT_EXCEPTION:
- m_sMessage = "Channel error while waiting for timeout";
+ m_sMessage = "AxisTransportException:Channel error while waiting" \
+ " for timeout";
break;
case SERVER_TRANSPORT_TIMEOUT_EXPIRED:
- m_sMessage = "Channel error connection timeout before receving";
+ m_sMessage = "AxisTransportException:Channel error connection " \
+ "timeout before receving";
break;
case SERVER_TRANSPORT_BUFFER_EMPTY:
- m_sMessage = "Transport buffer is empty";
+ m_sMessage = "AxisTransportException:Transport buffer is empty";
break;
default:
- m_sMessage = "Unknown Transport Exception";
+ m_sMessage = "AxisTransportException:Unknown Transport Exception";
}
return m_sMessage;
}
1.8 +5 -5 ws-axis/c/src/wsdd/AxisWsddException.cpp
Index: AxisWsddException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/wsdd/AxisWsddException.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AxisWsddException.cpp 21 Jun 2004 14:00:11 -0000 1.7
+++ AxisWsddException.cpp 23 Jun 2004 04:22:24 -0000 1.8
@@ -93,19 +93,19 @@
switch(iExceptionCode)
{
case CLIENT_WSDD_SERVICE_NOT_FOUND:
- m_sMessage = "Requested service not found";
+ m_sMessage = "AxisWsddException:Requested service not found";
break;
case CLIENT_WSDD_METHOD_NOT_ALLOWED:
- m_sMessage = "Requested method is not allowed";
+ m_sMessage = "AxisWsddException:Requested method is not allowed";
break;
case CLIENT_WSDD_PARA_TYPE_MISMATCH:
- m_sMessage = "Parameter type mismatch";
+ m_sMessage = "AxisWsddException:Parameter type mismatch";
break;
case SERVER_WSDD_NO_HANDLERS_CONFIGURED:
- m_sMessage = "No handlers configured in server.wsdd";
+ m_sMessage = "AxisWsddException:No handlers configured in server.wsdd";
break;
default:
- m_sMessage = "Unknown Wsdd Exception";
+ m_sMessage = "AxisWsddException:Unknown Wsdd Exception";
}
return m_sMessage;
}
1.4 +6 -3 ws-axis/c/src/xml/AxisParseException.cpp
Index: AxisParseException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/xml/AxisParseException.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AxisParseException.cpp 21 Jun 2004 14:00:11 -0000 1.3
+++ AxisParseException.cpp 23 Jun 2004 04:22:24 -0000 1.4
@@ -92,13 +92,16 @@
switch(iExceptionCode)
{
case SERVER_PARSE_BUFFER_EMPTY:
- m_sMessage = "Buffer received from the parser is empty";
+ m_sMessage = "AxisParseException:Buffer received from the parser is empty";
break;
case SERVER_PARSE_PARSER_FAILED:
- m_sMessage = "Parser failed";
+ m_sMessage = "AxisParseException:XML_STATUS_ERROR thrown from parser";
+ break;
+ case SERVER_PARSE_TRANSPORT_FAILED:
+ m_sMessage = "AxisParseException:Error when getting the byte stream from the transport";
break;
default:
- m_sMessage = "Unknown Parse Exception";
+ m_sMessage = "AxisParseException:Unknown Parse Exception";
}
return m_sMessage;
}
1.4 +4 -0 ws-axis/c/src/xml/expat/XMLParserExpat.cpp
Index: XMLParserExpat.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/xml/expat/XMLParserExpat.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XMLParserExpat.cpp 14 Jun 2004 08:00:47 -0000 1.3
+++ XMLParserExpat.cpp 23 Jun 2004 04:22:24 -0000 1.4
@@ -272,6 +272,10 @@
m_nStatus = AXIS_FAIL;
}
if (TRANSPORT_FAILED == iTransportStatus) XML_ParseBuffer(m_Parser, 0, true);
+ if(AXIS_FAIL == m_nStatus)
+ throw AxisParseException( SERVER_PARSE_PARSER_FAILED);
+ if(TRANSPORT_FAILED == iTransportStatus)
+ throw AxisParseException(SERVER_PARSE_TRANSPORT_FAILED);
}
else throw AxisParseException(SERVER_PARSE_BUFFER_EMPTY);
/* end of parsing */