#include <bbtkInterpreterVirtual.h>
Public Member Functions | |
InterpreterException (const std::string &message, bool in_script_file, const std::string &script_file, int script_line) | |
InterpreterException (const Exception &excep, bool in_script_file, const std::string &script_file, int script_line) | |
~InterpreterException () throw () | |
bool | IsInScriptFile () const |
const std::string & | GetScriptFile () const |
int | GetScriptLine () const |
void | Print () throw () |
const std::string & | GetObject () const |
const std::string & | GetSourceFile () const |
const std::string & | GetErrorMessage () const |
Private Attributes | |
bool | mInScriptFile |
std::string | mScriptFile |
int | mScriptLine |
Definition at line 78 of file bbtkInterpreterVirtual.h.
bbtk::InterpreterException::InterpreterException | ( | const std::string & | message, | |
bool | in_script_file, | |||
const std::string & | script_file, | |||
int | script_line | |||
) |
Definition at line 360 of file bbtkInterpreterVirtual.cxx.
00365 : Exception("interpreter",0,message), 00366 mInScriptFile(in_script_file), 00367 mScriptFile(script_file), 00368 mScriptLine(script_line) 00369 { 00370 }
bbtk::InterpreterException::InterpreterException | ( | const Exception & | excep, | |
bool | in_script_file, | |||
const std::string & | script_file, | |||
int | script_line | |||
) |
Definition at line 373 of file bbtkInterpreterVirtual.cxx.
00378 : Exception(excep), 00379 mInScriptFile(in_script_file), 00380 mScriptFile(script_file), 00381 mScriptLine(script_line) 00382 { 00383 }
bbtk::InterpreterException::~InterpreterException | ( | ) | throw () [inline] |
const std::string& bbtk::Exception::GetErrorMessage | ( | ) | const [inline, inherited] |
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, inherited] |
const std::string& bbtk::InterpreterException::GetScriptFile | ( | ) | const [inline] |
Definition at line 94 of file bbtkInterpreterVirtual.h.
Referenced by bbtk::InterpreterVirtual::CatchInterpreterException(), and bbtk::Interpreter::CatchInterpreterException().
00094 { return mScriptFile; }
int bbtk::InterpreterException::GetScriptLine | ( | ) | const [inline] |
Definition at line 95 of file bbtkInterpreterVirtual.h.
Referenced by bbtk::InterpreterVirtual::CatchInterpreterException(), and bbtk::Interpreter::CatchInterpreterException().
00095 { return mScriptLine; }
const std::string& bbtk::Exception::GetSourceFile | ( | ) | const [inline, inherited] |
bool bbtk::InterpreterException::IsInScriptFile | ( | ) | const [inline] |
Definition at line 93 of file bbtkInterpreterVirtual.h.
Referenced by bbtk::InterpreterVirtual::CatchInterpreterException().
00093 { return mInScriptFile; }
void bbtk::Exception::Print | ( | ) | throw () [inline, inherited] |
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 }
bool bbtk::InterpreterException::mInScriptFile [private] |
Definition at line 97 of file bbtkInterpreterVirtual.h.
std::string bbtk::InterpreterException::mScriptFile [private] |
Definition at line 98 of file bbtkInterpreterVirtual.h.
int bbtk::InterpreterException::mScriptLine [private] |
Definition at line 99 of file bbtkInterpreterVirtual.h.