API  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
OpenSim::Exception Class Reference
+ Inheritance diagram for OpenSim::Exception:

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
 
virtual void print (std::ostream &aOut) const
 
const char * what () const throw ()
 

Protected Attributes

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

Constructor & Destructor Documentation

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

Member Function Documentation

const char* OpenSim::Exception::getMessage ( ) const
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 file: