jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame] | 1 | /*
|
| 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 |
|
| 12 | class 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 | */
|
| 25 | class TableKeyNotDefinedException : public std::exception {
|
| 26 | public:
|
| 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();
|
| 33 | private:
|
| 34 | const std::string msg;
|
| 35 | };
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 | #endif /* TABLEKEYNOTDEFINEDEXCEPTION_H_ */
|