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";
An exception class inspired by Java's EnumConstantNotPresentException.
~EnumConstantNotPresentException() override
Required override of destructor for std::exception.
const char * what() const override
Provides descriptive message of error.
EnumConstantNotPresentException(const char *_Message)
Constructor with char* message.
EnumConstantNotPresentException(const std::string &_Message)
Constructor with string message.