bbtk::InterpreterException Class Reference

#include <bbtkInterpreter.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 77 of file bbtkInterpreter.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 399 of file bbtkInterpreter.cxx.

00404     : Exception("interpreter",0,message),
00405       mInScriptFile(in_script_file),
00406       mScriptFile(script_file),
00407       mScriptLine(script_line)
00408   {
00409   }

bbtk::InterpreterException::InterpreterException ( const Exception excep,
bool  in_script_file,
const std::string &  script_file,
int  script_line 
)

Definition at line 412 of file bbtkInterpreter.cxx.

00417     : Exception(excep),
00418       mInScriptFile(in_script_file),
00419       mScriptFile(script_file),
00420       mScriptLine(script_line)
00421   {
00422   }

bbtk::InterpreterException::~InterpreterException (  )  throw () [inline]

Definition at line 90 of file bbtkInterpreter.h.

00090 {}


Member Function Documentation

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

Definition at line 92 of file bbtkInterpreter.h.

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

00092 { return mInScriptFile; }

Here is the caller graph for this function:

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

Definition at line 93 of file bbtkInterpreter.h.

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

00093 { return mScriptFile; }

Here is the caller graph for this function:

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

Definition at line 94 of file bbtkInterpreter.h.

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

00094 { return mScriptLine; }

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::Interpreter::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:

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.

Referenced by bbtk::Interpreter::CatchBbtkException(), and bbtk::Interpreter::CatchInterpreterException().

00081 { return mMessage; }

Here is the caller graph for this function:


Member Data Documentation

bool bbtk::InterpreterException::mInScriptFile [private]

Definition at line 96 of file bbtkInterpreter.h.

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

Definition at line 97 of file bbtkInterpreter.h.

int bbtk::InterpreterException::mScriptLine [private]

Definition at line 98 of file bbtkInterpreter.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 27 15:00:31 2009 for BBTK by  doxygen 1.5.3