OpenStudio:utilities
Loading...
Searching...
No Matches
openstudio::Exception Class Reference

#include <Exception.hpp>

+ Inheritance diagram for openstudio::Exception:

Public Member Functions

 Exception (const char *msg)
 Needed for rb_raise support in swig.
 
 Exception (const Exception &)=default
 
 Exception (const std::string &msg)
 Constructor takes a message.
 
 Exception (Exception &&)=default
 
virtual const std::string & message () const
 return the message
 
Exceptionoperator= (const Exception &)=default
 
Exceptionoperator= (Exception &&)=default
 
virtual const char * what () const noexcept override
 return the message
 
virtual ~Exception () noexcept override=default
 

Detailed Description

Base class for exceptions.

Constructor & Destructor Documentation

◆ Exception() [1/4]

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

Constructor takes a message.

◆ Exception() [2/4]

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

Needed for rb_raise support in swig.

◆ Exception() [3/4]

openstudio::Exception::Exception ( const Exception & )
default

◆ Exception() [4/4]

openstudio::Exception::Exception ( Exception && )
default

◆ ~Exception()

virtual openstudio::Exception::~Exception ( )
overridevirtualdefaultnoexcept

Member Function Documentation

◆ message()

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

return the message

◆ operator=() [1/2]

Exception & openstudio::Exception::operator= ( const Exception & )
default

◆ operator=() [2/2]

Exception & openstudio::Exception::operator= ( Exception && )
default

◆ what()

virtual const char * openstudio::Exception::what ( ) const
inlineoverridevirtualnoexcept

return the message