#include #include using namespace std; class ListException: public logic_error { public: ListException(const string & message = "") : logic_error(message.c_str()) { } }; // end ListException