OpenSim::Exception Class Reference
#include <Exception.h>
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
File in which the error occurred.
Line number at which the error occurred.
A user set message for the exception.
The documentation for this class was generated from the following files:
- OpenSim/Common/Exception.h
- OpenSim/Common/Exception.cpp