OpenSim::Exception Class Reference

#include <Exception.h>

Inheritance diagram for OpenSim::Exception:
OpenSim::InterruptedException OpenSim::OldVersionException OpenSim::XMLParsingException

List of all members.

Public Member Functions

 Exception (const std::string &aMsg="", const std::string &aFile="", int aLine=-1)
virtual ~Exception () throw ()
void setMessage (const std::string &aMsg)
const char * getMessage () const
 Get the exception message.
virtual void print (std::ostream &aOut) const
const char * what () const throw ()

Protected Attributes

std::string _msg
 A user set message for the exception.
std::string _file
 File in which the error occurred.
int _line
 Line number at which the error occurred.

Constructor & Destructor Documentation

OpenSim::Exception::Exception ( const std::string &  aMsg = "",
const std::string &  aFile = "",
int  aLine = -1 
)
virtual OpenSim::Exception::~Exception (  )  throw () [inline, virtual]

Member Function Documentation

const char * Exception::getMessage (  )  const

Get the exception message.

Returns:
Message.
virtual void OpenSim::Exception::print ( std::ostream &  aOut  )  const [virtual]
void OpenSim::Exception::setMessage ( const std::string &  aMsg  ) 
const char* OpenSim::Exception::what (  )  const throw () [inline]

Member Data Documentation

std::string OpenSim::Exception::_file [protected]

File in which the error occurred.

int OpenSim::Exception::_line [protected]

Line number at which the error occurred.

std::string OpenSim::Exception::_msg [protected]

A user set message for the exception.


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

Generated on Sun Sep 25 00:19:47 2011 for OpenSim by  doxygen 1.6.1