1 // exception.hpp 2 // 3 // Copyright (c) 2003 Eugene Gladyshev 4 // 5 // Permission to copy, use, modify, sell and distribute this software 6 // is granted provided this copyright notice appears in all copies. 7 // This software is provided "as is" without express or implied 8 // warranty, and with no claim as to its suitability for any purpose. 9 // 10 11 #ifndef __ttl_exception__hpp 12 #define __ttl_exception__hpp 13 14 #include "settings/extern/ttl/config.hpp" 15 16 namespace ttl 17 { 18 struct exception : std::runtime_error 19 { exceptionttl::exception20 exception() : std::runtime_error("ttl error") {} exceptionttl::exception21 exception(const char* msg) : std::runtime_error(msg) {} 22 }; 23 } 24 25 #endif //__exception__hpp 26