20 #ifndef _ENUMCONSTANTNOTPRESENTEXCEPTION_HPP 21 #define _ENUMCONSTANTNOTPRESENTEXCEPTION_HPP 31 : runtime_error(_Message) {}
35 : runtime_error(_Message) {}
41 const char*
what()
const throw()
override 43 return "Attempted to access enum by name that is not present";
EnumConstantNotPresentException(const char *_Message)
Constructor with char* message.
EnumConstantNotPresentException(const std::string &_Message)
Constructor with string message.
const char * what() const override
Provides descriptive message of error.
An exception class inspired by Java's EnumConstantNotPresentException.
~EnumConstantNotPresentException() override
Required override of destructor for std::exception.