00001 //-------------------------------------------------- 00012 //--------------------------------------------------- 00013 00014 #ifndef IMEDGINEINDEXOUTOFBOUNDSEXCEPTION_H 00015 #define IMEDGINEINDEXOUTOFBOUNDSEXCEPTION_H 00016 00017 #include "exception.h" 00018 00019 namespace imedgine 00020 { 00021 00022 //-------------------------------------------------- 00033 //-------------------------------------------------- 00034 00035 class IndexOutOfBoundsException : public Exception 00036 { 00037 public: 00038 00039 //-------------------------------------------------- 00043 00044 IndexOutOfBoundsException(std::string detail = ""); 00045 00046 //-------------------------------------------------- 00049 00050 IndexOutOfBoundsException(IndexOutOfBoundsException const& src); 00051 00052 //-------------------------------------------------- 00055 00056 virtual ~IndexOutOfBoundsException() throw(); 00057 00058 //-------------------------------------------------- 00063 00064 virtual char const* what() const throw(); 00065 00066 private: 00067 00068 IndexOutOfBoundsException& operator = (IndexOutOfBoundsException const&) 00069 { return(*this); } 00070 00071 }; 00072 } 00073 00074 #endif