libmoost
/home/mhx/git/github/libmoost/include/moost/pdl/exception.h
Go to the documentation of this file.
00001 /* vim:set ts=3 sw=3 sts=3 et: */
00028 #ifndef MOOST_PDL_EXCEPTION_H__
00029 #define MOOST_PDL_EXCEPTION_H__
00030 
00031 #include <stdexcept>
00032 
00033 namespace moost { namespace pdl {
00034 
00038 class exception: public std::runtime_error
00039 {
00040 public:
00041    exception(const std::string& err)
00042       : std::runtime_error(err)
00043    {
00044    }
00045 };
00046 
00050 class library_load_error: public exception
00051 {
00052 public:
00053    library_load_error(const std::string& err)
00054       : exception(err)
00055    {
00056    }
00057 };
00058 
00062 class library_not_found_error: public exception
00063 {
00064 public:
00065    library_not_found_error(const std::string& err)
00066       : exception(err)
00067    {
00068    }
00069 };
00070 
00074 class class_not_found_error: public exception
00075 {
00076 public:
00077    class_not_found_error(const std::string& err)
00078       : exception(err)
00079    {
00080    }
00081 };
00082 
00083 }}
00084 
00085 #endif