#include <bbtkException.h>
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 |
Long description:
Definition at line 58 of file bbtkException.h.
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] |
const std::string& bbtk::Exception::GetErrorMessage | ( | ) | const [inline] |
Definition at line 81 of file bbtkException.h.
Referenced by bbtk::InterpreterVirtual::CatchBbtkException(), bbtk::Interpreter::CatchBbtkException(), bbtk::InterpreterVirtual::CatchInterpreterException(), and bbtk::Interpreter::CatchInterpreterException().
00081 { return mMessage; }
const std::string& bbtk::Exception::GetObject | ( | ) | const [inline] |
const std::string& bbtk::Exception::GetSourceFile | ( | ) | const [inline] |
void bbtk::Exception::Print | ( | ) | throw () [inline] |
Definition at line 69 of file bbtkException.h.
References bbtk::MessageManager::GetMessageLevel().
Referenced by bbtk::InterpreterVirtual::CommandLineInterpreter(), and main().
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 }
std::string bbtk::Exception::mMessage [private] |
Definition at line 85 of file bbtkException.h.
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.