rwsf::ServerFaultrwsf::Fault
#include rwsf/webservice/Fault.h
An instance of class rwsf::ServerFault extends rwsf::Fault to represent a SOAP server fault.
A SOAP server fault is used to indicate an error caused by a problem with the server rather than a problem caused by bad data from the client. An example might be a failure to access requested data. By default , rwsf server sample implementations throw a rwsf::ServerFault indicating that the implementation has not yet been written, as follows:
throw rwsf::ServerFault("Sorry: The service was invoked but the requested " "operation \"getSummary\" has not been implemented. An implementation " "must be written.");
You may choose to also throw a rwsf::ClientFault in the server implementation for several reasons, such as an out-of-range input parameter.
For more information on faults, see Section 7.3.7, "WSDL-Defined Faults," in the HydraExpress Web Service Development Guide.
ServerFault(const std::string & msg);
Creates an instance of a server fault containing the error text msg. The SOAP message is then passed to the constructor of rwsf::Fault.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.