Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages | Examples

SoapFaultException Class Reference

Superclass of all user-defined soap faults defined in the WSDL. More...

#include <SoapFaultException.hpp>

Inheritance diagram for SoapFaultException:

AxisException OtherFaultException List of all members.

Public Member Functions

 SoapFaultException (const AxisChar *code, const AxisChar *string, const AxisChar *actor, int exceptionCode)
 SoapFaultException (AxisException &ae)
 SoapFaultException (const SoapFaultException &copy)
virtual SoapFaultExceptionoperator= (SoapFaultException other)
virtual const AxisChar * getFaultCode () const
virtual const AxisChar * getFaultString () const
virtual const AxisChar * getFaultActor () const
virtual void setFaultCode (const AxisChar *code)
virtual void setFaultString (const AxisChar *string)
virtual void setFaultActor (const AxisChar *actor)
virtual void setExceptionCode (int code)
virtual const char * what () throw ()
virtual const int getExceptionCode ()

Detailed Description

Superclass of all user-defined soap faults defined in the WSDL.

SoapFaultException is the superclass of all user faults that are defined in the WSDL. This enables a client application to catch all soap faults in a single catch block. To catch a specific soap fault, a client application should catch the class that represents the fault's complex type. SoapFaultException is a simple class that encapsulates the fault information and does not reference the SoapFault itself. This means it can clean it's own storage in its destructor so the client application doesn't have to.

Author:
Mark Whitlock


Member Function Documentation

virtual const int SoapFaultException::getExceptionCode  )  [virtual]
 

This can be called to get the exception code which is passed in the constructor. This returns -1 value when the constructor does not have a exception code parameter

Returns:
the exception code if the construct have a exception code int parameter. Else return -1.

exception message

Implements AxisException.

virtual const char* SoapFaultException::what  )  throw () [virtual]
 

Returns:
the fault string

Implements AxisException.


The documentation for this class was generated from the following file:
Generated on Sat Apr 9 15:11:58 2005 for AxisC++ by doxygen 1.3.8