OpenSim  OpenSim 3.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
OpenSim::Exception Class Reference

#include <Exception.h>

Inheritance diagram for OpenSim::Exception:
OpenSim::InterruptedException

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.
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 ()
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: