bbtk::Exception Class Reference

class Exception : generic class for throwing any exception More...

#include <bbtkException.h>

Inheritance diagram for bbtk::Exception:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Exception (const std::string &object, const std::string &source_file, const std::string &message) throw ()
 ~Exception () throw ()
void Print () throw ()
const std::string & GetObject () const
const std::string & GetSourceFile () const
const std::string & GetErrorMessage () const

Private Attributes

std::string mObject
std::string mSourceFile
std::string mMessage


Detailed Description

class Exception : generic class for throwing any exception

Long description:

Definition at line 58 of file bbtkException.h.


Constructor & Destructor Documentation

bbtk::Exception::Exception ( const std::string &  object,
const std::string &  source_file,
const std::string &  message 
) throw () [inline]

Definition at line 61 of file bbtkException.h.

00064       : mObject(object),
00065         mSourceFile(source_file),
00066         mMessage(message)
00067     {}

bbtk::Exception::~Exception (  )  throw () [inline]

Definition at line 68 of file bbtkException.h.

00068 {}


Member Function Documentation

void bbtk::Exception::Print (  )  throw () [inline]

Definition at line 69 of file bbtkException.h.

00070     {
00071       std::cerr << "* ERROR  : " << mMessage <<std::endl; 
00072       int lev = bbtk::MessageManager::GetMessageLevel("Error");
00073       if (lev > 0) {
00074         std::cerr << "* OBJECT : " <<mObject<<std::endl;
00075         std::cerr << "* FILE   : " <<mSourceFile<<std::endl;
00076       }
00077     }

const std::string& bbtk::Exception::GetObject (  )  const [inline]

Definition at line 79 of file bbtkException.h.

00079 { return mObject; }

const std::string& bbtk::Exception::GetSourceFile (  )  const [inline]

Definition at line 80 of file bbtkException.h.

00080 { return mSourceFile; }

const std::string& bbtk::Exception::GetErrorMessage (  )  const [inline]

Definition at line 81 of file bbtkException.h.

00081 { return mMessage; }


Member Data Documentation

std::string bbtk::Exception::mObject [private]

Definition at line 83 of file bbtkException.h.

std::string bbtk::Exception::mSourceFile [private]

Definition at line 84 of file bbtkException.h.

std::string bbtk::Exception::mMessage [private]

Definition at line 85 of file bbtkException.h.


The documentation for this class was generated from the following file:

Generated on Wed Nov 12 11:38:43 2008 for BBTK by  doxygen 1.5.6