4 * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.
11 class VectorOutOfRange : public std::exception
14 VectorOutOfRange(std::string vectorName, int index, int max)
15 : _name(vectorName), _index(index), _max(max)
17 ~VectorOutOfRange() throw();
18 int index(){return _index;}
19 int max(){return _max;}
20 const char* what() const throw();