Renamed cscope_db to ctags_db
[vimicxx.git] / src / generic_exception.h
blobe67c478a7fbba1210e13fc5a33eb1c35636b0c02
1 /*******************************************************************************
2 ********************************************************************************
4 Copyright (c) 2008 Ahmed S. Badran
6 Licensed under the FreeBSD License (see LICENSE)
8 Filename: generic_exception.h
9 Description: A generic exception class.
10 Created: 08/19/2008 11:43:10 PM PDT
11 Author: Ahmed S. Badran (Ahmed B.), ahmed.badran@gmail.com
13 ********************************************************************************
14 *******************************************************************************/
15 #ifndef GENERIC_EXCEPTION_INC
16 #define GENERIC_EXCEPTION_INC
17 #include <exception>
18 #include <string>
19 class generic_exception: public std::exception
21 public:
22 generic_exception(const std::string& m) throw():
23 msg(m)
26 const char* what() const throw()
28 return msg.c_str();
30 ~generic_exception() throw ()
33 private:
34 std::string msg;
36 #endif // ----- #ifndef GENERIC_EXCEPTION_INC -----