00001 #ifndef OBT_ARG_EXCEPTION_H
00002 #define OBT_ARG_EXCEPTION_H
00003
00004 #include "OBT.h"
00005 #include <exception>
00006 #include <string>
00007
00008 namespace OBT
00009 {
00010
00011 class OBT_API ArgException : public std::exception
00012 {
00013 public:
00014 explicit ArgException( const std::string& msg ) : std::exception(), _msg( msg ) {}
00015 virtual ~ArgException() throw() {}
00016 virtual const char* what() const throw() { return _msg.c_str() ; }
00017 private:
00018 std::string _msg;
00019 };
00020
00021 }
00022 #endif // OBT_ARG_EXCEPTION_H
00023