bbtk::InterpreterError Class Reference

#include <bbtkInterpreter.h>

Inheritance diagram for bbtk::InterpreterError:

Inheritance graph
[legend]
Collaboration diagram for bbtk::InterpreterError:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 73 of file bbtkInterpreter.h.


Constructor & Destructor Documentation

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]

Definition at line 86 of file bbtkInterpreter.h.

00086 {}


Member Function Documentation

bool bbtk::InterpreterError::IsInScriptFile (  )  const [inline]

Definition at line 88 of file bbtkInterpreter.h.

00088 { return mInScriptFile; }

const std::string& bbtk::InterpreterError::GetScriptFile (  )  const [inline]

Definition at line 89 of file bbtkInterpreter.h.

00089 { return mScriptFile; }

int bbtk::InterpreterError::GetScriptLine (  )  const [inline]

Definition at line 90 of file bbtkInterpreter.h.

00090 { return mScriptLine; }

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]

Definition at line 79 of file bbtkException.h.

00079 { return mObject; }

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

Definition at line 80 of file bbtkException.h.

00080 { return mSourceFile; }

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

Definition at line 81 of file bbtkException.h.

00081 { return mMessage; }


Member Data Documentation

bool bbtk::InterpreterError::mInScriptFile [private]

Definition at line 92 of file bbtkInterpreter.h.

Referenced by InterpreterError().

std::string bbtk::InterpreterError::mScriptFile [private]

Definition at line 93 of file bbtkInterpreter.h.

Referenced by InterpreterError().

int bbtk::InterpreterError::mScriptLine [private]

Definition at line 94 of file bbtkInterpreter.h.

Referenced by InterpreterError().


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

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