LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
IndexOutOfBoundsException.h
1 #ifndef RHESUS_INDEXOUTOFBOUNDSEXCEPTION_H_
2 #define RHESUS_INDEXOUTOFBOUNDSEXCEPTION_H_
3 
4 #include <exception>
5 
6 #include "exception_message.hpp"
7 
8 namespace Rhesus
9 {
10  namespace Toolkit
11  {
12  class IndexOutOfBoundsException : public std::exception, public exception_message
13  {
14  public:
15  IndexOutOfBoundsException() : exception_message("") {}
16  IndexOutOfBoundsException(const char* message) : exception_message(message) {}
17 
18  const char* what() const throw() { return "(Rhesus::Framework::IndexOutOfBounds) Index is out of bounds."; }
19 
20  };
21  }
22 }
23 
24 #endif