blob: 1da9913963a7ed0f303da933ead1158737565ca3 [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001/*
2 * TableKeyNotDefinedException.h
3 *
4 * Created on: Sep 22, 2012
5 * Author: Mitchell Wills
6 */
7
8#ifndef TABLEKEYNOTDEFINEDEXCEPTION_H_
9#define TABLEKEYNOTDEFINEDEXCEPTION_H_
10
11
12class TableKeyNotDefinedException;
13
14
15#include <exception>
16#include <string>
17
18
19/**
20 * An exception throw when the lookup a a key-value fails in a {@link ITable}
21 *
22 * @author Mitchell
23 *
24 */
25class TableKeyNotDefinedException : public std::exception {
26public:
27 /**
28 * @param key the key that was not defined in the table
29 */
30 TableKeyNotDefinedException(const std::string key);
31 ~TableKeyNotDefinedException() throw();
32 const char* what();
33private:
34 const std::string msg;
35};
36
37
38
39
40#endif /* TABLEKEYNOTDEFINEDEXCEPTION_H_ */