#include <bbtkInterpreter.h>
Public Member Functions | |
InterpreterError (const std::string &message, bool in_script_file, const std::string &script_file, int script_line) | |
InterpreterError (const Exception &excep, bool in_script_file, const std::string &script_file, int script_line) | |
~InterpreterError () 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 73 of file bbtkInterpreter.h.
bbtk::InterpreterError::InterpreterError | ( | const std::string & | message, | |
bool | in_script_file, | |||
const std::string & | script_file, | |||
int | script_line | |||
) |
Definition at line 377 of file bbtkInterpreter.cxx.
00382 : Exception("Interpreter",0,message), 00383 mInScriptFile(in_script_file), 00384 mScriptFile(script_file), 00385 mScriptLine(script_line) 00386 { 00387 }
bbtk::InterpreterError::InterpreterError | ( | const Exception & | excep, | |
bool | in_script_file, | |||
const std::string & | script_file, | |||
int | script_line | |||
) |
Definition at line 388 of file bbtkInterpreter.cxx.
References mInScriptFile, mScriptFile, and mScriptLine.
00393 : Exception(excep), 00394 mInScriptFile(in_script_file), 00395 mScriptFile(script_file), 00396 mScriptLine(script_line) 00397 { 00398 }
bbtk::InterpreterError::~InterpreterError | ( | ) | throw () [inline] |
bool bbtk::InterpreterError::IsInScriptFile | ( | ) | const [inline] |
const std::string& bbtk::InterpreterError::GetScriptFile | ( | ) | const [inline] |
int bbtk::InterpreterError::GetScriptLine | ( | ) | const [inline] |
void bbtk::Exception::Print | ( | ) | throw () [inline, inherited] |
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, inherited] |
const std::string& bbtk::Exception::GetSourceFile | ( | ) | const [inline, inherited] |
const std::string& bbtk::Exception::GetErrorMessage | ( | ) | const [inline, inherited] |
bool bbtk::InterpreterError::mInScriptFile [private] |
std::string bbtk::InterpreterError::mScriptFile [private] |
int bbtk::InterpreterError::mScriptLine [private] |