rwlogo
HydraExpress 4.6

HydraExpress C++ API Reference Guide


   


Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::ClientFault Class Reference
[Web Services]

Extends rwsf::Fault to represent a SOAP client fault. More...

#include <rwsf/webservice/Fault.h>

Inheritance diagram for rwsf::ClientFault:
rwsf::Fault rwsf::Exception

List of all members.

Public Member Functions

 ClientFault (const std::string &msg)

Detailed Description

An instance of class rwsf::ClientFault extends rwsf::Fault to represent a SOAP client fault. A SOAP client fault is used to indicate an error caused by incorrect information from the client or a bad SOAP request.

The main use of this class and rwsf::ServerFault is to generate a SOAP client fault or SOAP server fault in the server implementation. For instance, the generated sample server implementation contains the following code:

 throw rwsf::ClientFault("Unrecognized values in message.");

You may choose to also throw an rwsf::ClientFault in the server implementation for several reasons, such as an out-of-range input parameter.

For more information on faults, see the Web Service Development Guide.


Constructor & Destructor Documentation

rwsf::ClientFault::ClientFault ( const std::string &  msg  ) 

Creates an instance of a client 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.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.