LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
ArgumentOutOfRangeException.h
1 #ifndef RHESUS_ARGUMENTOUTOFRANGEEXCEPTION_H_
2 #define RHESUS_ARGUMENTOUTOFRANGEEXCEPTION_H_
3 
4 #include <exception>
5 
6 #include "exception_message.hpp"
7 
8 namespace Rhesus
9 {
10  namespace Toolkit
11  {
12  class ArgumentOutOfRangeException : public std::invalid_argument, public exception_message
13  {
14  public:
15  ArgumentOutOfRangeException() : std::invalid_argument("(Rhesus::Framework::ArgumentOutOfRange) Argument is out of range."), exception_message("") { }
16  ArgumentOutOfRangeException(const char* message) : std::invalid_argument("(Rhesus::Framework::ArgumentOutOfRange) Argument is out of range."), exception_message(message) { }
17  };
18  }
19 }
20 
21 #endif