#include <WSFException.h>
Public Member Functions | |
virtual | ~Exception () |
virtual void | process () const =0 |
virtual | operator std::string () const |
std::string | getFaultReason () |
std::string | getFaultCode () |
Protected Member Functions | |
Exception (char const *reason) | |
Exception (char const *reason, char const *code) | |
Friends | |
WSF_EXTERN std::ostream & | operator<< (std::ostream &str, Exception const &e) |
WSF_EXTERN std::ostream & | operator<< (std::ostream &str, Exception const *e) |
virtual wso2wsf::Exception::~Exception | ( | ) | [virtual] |
destructor that can be overridden.
wso2wsf::Exception::Exception | ( | char const * | reason | ) | [protected] |
Constructor accepting a reason for the exception.
reason | reason to exception. |
wso2wsf::Exception::Exception | ( | char const * | reason, | |
char const * | code | |||
) | [protected] |
Constructor accepting both the reason and code the exception
reason | Reason for the exception. | |
code | The Fault code corresponding to the exception. |
std::string wso2wsf::Exception::getFaultCode | ( | ) |
Method to get the exception fault code
std::string wso2wsf::Exception::getFaultReason | ( | ) |
Method to obtain the exception fault reason
virtual wso2wsf::Exception::operator std::string | ( | ) | const [virtual] |
Operation for obtaining string representation of the exception object. No member fields can be modified within this function. The derived class has the option to override the behavior.
virtual void wso2wsf::Exception::process | ( | ) | const [pure virtual] |
Method for doing the required processing. Must be overridden, for an class that can be constructed.
Implemented in wso2wsf::WSFault.
WSF_EXTERN std::ostream& operator<< | ( | std::ostream & | str, | |
Exception const * | e | |||
) | [friend] |
Overloaded insertion operator, is used for printing the exception onto a console.
str | existing stream. | |
e | exception object. |
WSF_EXTERN std::ostream& operator<< | ( | std::ostream & | str, | |
Exception const & | e | |||
) | [friend] |
Overloaded insertion operator, is used for printing the exception onto a console.
str | existing stream. | |
e | exception object. |