1 #ifndef RHESUS_INDEXOUTOFBOUNDSEXCEPTION_H_
2 #define RHESUS_INDEXOUTOFBOUNDSEXCEPTION_H_
6 #include "exception_message.hpp"
12 class IndexOutOfBoundsException :
public std::exception,
public exception_message
15 IndexOutOfBoundsException() : exception_message(
"") {}
16 IndexOutOfBoundsException(
const char* message) : exception_message(message) {}
18 const char* what()
const throw() {
return "(Rhesus::Framework::IndexOutOfBounds) Index is out of bounds."; }