| S3FC project page | S3FC home page |
#include <s3_exception.h>
Inheritance diagram for s3_exception:

Public Methods | |
| s3_exception (const s3_exception &src) | |
| Instantiate a copy of an exception. More... | |
| ~s3_exception () throw () | |
| Default destructor. More... | |
| virtual const char * | what () const throw () |
| Report error string. More... | |
Protected Methods | |
| s3_exception (const std::string &str) | |
| Initialising constructor. More... | |
Protected Attributes | |
| std::string | err_string |
String reported by what(). More... | |
The more useful exceptions are s3_generic_exception and s3_index_exception. s3_exception can be used as follows.
if (!ok)
{
throw s3_expection("It happens!");
}
try
{
...
}
catch(const s3_exception& e)
{
cout << e.what();
{
Definition at line 63 of file s3_exception.h.
|
|
Initialising constructor. Instantiate exception with supplied error string. Definition at line 39 of file s3_exception.cc. |
|
|
Instantiate a copy of an exception.
Definition at line 45 of file s3_exception.cc. References err_string. |
|
|
Default destructor.
Definition at line 84 of file s3_exception.h. |
|
|
Report error string.
Definition at line 51 of file s3_exception.cc. Referenced by s3_rpc_exception::s3_rpc_exception. |
|
|
String reported by
Definition at line 69 of file s3_exception.h. Referenced by s3_exception, s3_generic_exception::s3_generic_exception, s3_index_exception::s3_index_exception, and s3_rpc_exception::s3_rpc_exception. |
| Send comments to: s3fc@stonethree.com |
|