OpenStudio: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...
 
 Exception (const Exception &)=default
 
 Exception (Exception &&)=default
 
virtual const std::string & message () const
 return the message More...
 
Exceptionoperator= (const Exception &)=default
 
Exceptionoperator= (Exception &&)=default
 
virtual const char * what () const noexceptoverride
 return the message More...
 
virtual ~Exception () noexceptoverride=default
 

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.

openstudio::Exception::Exception ( const Exception )
default
openstudio::Exception::Exception ( Exception &&  )
default
virtual openstudio::Exception::~Exception ( )
overridevirtualdefaultnoexcept

Member Function Documentation

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

return the message

Exception& openstudio::Exception::operator= ( const Exception )
default
Exception& openstudio::Exception::operator= ( Exception &&  )
default
virtual const char* openstudio::Exception::what ( ) const
inlineoverridevirtualnoexcept

return the message