Site hosted by Angelfire.com: Build your free website today!
// NotFound.h
/**
 * This class holds an exception class thrown by functions of 
 * the class MyPointers. 
 */



#ifndef NOT_FOUND_H

#define NOT_FOUND_H



#include <string>

using namespace std;



// Exception class that is thrown by functions in this class

class NotFound {

   public:

      // Intializes index to unknown value

      NotFound() {i = -1;}



      // Initializes index to value in parameter

      NotFound(int index) {i = index;}



      // Returns message as a string

      string getMessage() const;



   private:

      int i;

};



#endif