ProteoWizard
Public Member Functions | List of all members
EnumConstantNotPresentException Class Reference

An exception class inspired by Java's EnumConstantNotPresentException. More...

#include <EnumConstantNotPresentException.hpp>

Inheritance diagram for EnumConstantNotPresentException:

Public Member Functions

 EnumConstantNotPresentException (const std::string &_Message)
 Constructor with string message. More...
 
 EnumConstantNotPresentException (const char *_Message)
 Constructor with char* message. More...
 
 ~EnumConstantNotPresentException () override throw ()
 Required override of destructor for std::exception. More...
 
const char * what () const override throw ()
 Provides descriptive message of error. More...
 

Detailed Description

An exception class inspired by Java's EnumConstantNotPresentException.

Definition at line 26 of file EnumConstantNotPresentException.hpp.

Constructor & Destructor Documentation

◆ EnumConstantNotPresentException() [1/2]

EnumConstantNotPresentException::EnumConstantNotPresentException ( const std::string &  _Message)
inlineexplicit

Constructor with string message.

Definition at line 30 of file EnumConstantNotPresentException.hpp.

31  : runtime_error(_Message) {}

◆ EnumConstantNotPresentException() [2/2]

EnumConstantNotPresentException::EnumConstantNotPresentException ( const char *  _Message)
inlineexplicit

Constructor with char* message.

Definition at line 34 of file EnumConstantNotPresentException.hpp.

35  : runtime_error(_Message) {}

◆ ~EnumConstantNotPresentException()

EnumConstantNotPresentException::~EnumConstantNotPresentException ( )
throw (
)
inlineoverride

Required override of destructor for std::exception.

Definition at line 38 of file EnumConstantNotPresentException.hpp.

38 {}

Member Function Documentation

◆ what()

const char* EnumConstantNotPresentException::what ( ) const
throw (
)
inlineoverride

Provides descriptive message of error.

Definition at line 41 of file EnumConstantNotPresentException.hpp.

42  {
43  return "Attempted to access enum by name that is not present";
44  }

The documentation for this class was generated from the following file: