4 * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.
9 #include "VectorOutOfRange.h"
17 VectorOutOfRange::~VectorOutOfRange() throw()
19 // Dont need to do anything
22 const char* VectorOutOfRange::what() const throw()
24 std::ostringstream message;
25 message << "\nIn Vector "<< _name << ", vector index " << _index << " exceeds bounds 1-"
27 std::string outputMessage = message.str();
28 return outputMessage.c_str();
31 const char* VectorOutOfRange::what()
33 std::ostringstream message;
34 message << "\nIn Vector "<< _name << ", vector index " << _index << " exceeds bounds 1-"
36 std::string outputMessage = message.str();
37 return outputMessage.c_str();