Client Faults
The client proxy may throw:
rwsf::ServerFault when an internal error in the proxy occurs before the operation is invoked.
rwsf::SoapFaultException when the server returns a fault that is not specified as a possible exception in the WSDL file.
Custom generated faults derived from
rwsf::Fault. (See section for WSDL fault generation)
Exception types that maybe generated by data mapping mechanism to handle the data types on the response message.
Handling Returned Faults from Client Proxies
For instances of both
rwsf::ClientFault and
rwsf::ServerFault, the
rwsf::Fault.getFaultString() method retrieves the SOAP fault, while
rwsf::Fault.getFaultCode() method returns from the server an enum
rwsf:: FaultCode. The
FaultCode defines whether this is a client fault or a server fault.