S3FC project page S3FC home page

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

s3_generic_exception Class Reference

Generic exception - this can be used for anything, but it is advised that more specific exception rather be created. More...

#include <s3_exception.h>

Inheritance diagram for s3_generic_exception:

Inheritance graph
[legend]
Collaboration diagram for s3_generic_exception:

Collaboration graph
[legend]
List of all members.

Public Methods

 s3_generic_exception ()
 Construct default generic exception. More...

 s3_generic_exception (const std::string &n_where, const std::string &n_what)
 Construct generic exception from n_where with error string n_what. More...


Detailed Description

Generic exception - this can be used for anything, but it is advised that more specific exception rather be created.

It can be used as follows:

if (!ok)
{
  throw s3_expection("myFunction","It happend!");
}
It can then be caught with:
try
{
...
}
catch(const s3_exception& e)
{
   cout << e.what();
{
This will print out
myFunction: [It happend!]

Definition at line 119 of file s3_exception.h.


Constructor & Destructor Documentation

s3_generic_exception::s3_generic_exception  
 

Construct default generic exception.

Definition at line 57 of file s3_exception.cc.

s3_generic_exception::s3_generic_exception const std::string &    n_where,
const std::string &    n_what
 

Construct generic exception from n_where with error string n_what.

The error string reported by this instance contains some combination of n_where and n_what

Definition at line 63 of file s3_exception.cc.

References s3_exception::err_string.


The documentation for this class was generated from the following files:
Send comments to: s3fc@stonethree.com SourceForge Logo