OpenStudioCore:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
openstudio::Exception Class Reference

#include <Exception.hpp>

+ Inheritance diagram for openstudio::Exception:

Public Member Functions

 Exception (const std::string &msg)
 Constructor takes a message. More...
 
 Exception (const char *msg)
 Needed for rb_raise support in swig. More...
 
virtual const std::string & message () const
 return the message More...
 
virtual const char * what () const throw ()
 return the message More...
 
virtual ~Exception () throw ()
 virtual destructor, no throw More...
 

Detailed Description

Base class for exceptions.

Constructor & Destructor Documentation

openstudio::Exception::Exception ( const std::string &  msg)
inline

Constructor takes a message.

openstudio::Exception::Exception ( const char *  msg)
inline

Needed for rb_raise support in swig.

virtual openstudio::Exception::~Exception ( )
throw (
)
inlinevirtual

virtual destructor, no throw

Member Function Documentation

virtual const std::string& openstudio::Exception::message ( ) const
inlinevirtual

return the message

virtual const char* openstudio::Exception::what ( ) const
throw (
)
inlinevirtual

return the message