bbtk::InterpreterException Class Reference

#include <bbtkInterpreterVirtual.h>

Inheritance diagram for bbtk::InterpreterException:

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

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 78 of file bbtkInterpreterVirtual.h.


Constructor & Destructor Documentation

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]

Definition at line 91 of file bbtkInterpreterVirtual.h.

00091 {}


Member Function Documentation

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

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

Definition at line 79 of file bbtkException.h.

00079 { return mObject; }

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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

Definition at line 80 of file bbtkException.h.

00080 { return mSourceFile; }

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

Definition at line 93 of file bbtkInterpreterVirtual.h.

Referenced by bbtk::InterpreterVirtual::CatchInterpreterException().

00093 { return mInScriptFile; }

Here is the caller graph for this function:

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     }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 97 of file bbtkInterpreterVirtual.h.

Definition at line 98 of file bbtkInterpreterVirtual.h.

Definition at line 99 of file bbtkInterpreterVirtual.h.


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

Generated on Thu May 31 14:14:45 2012 for BBTK by  doxygen 1.5.7.1