exception.hpp
Go to the documentation of this file.
1 #ifndef _GRL_EXCEPTION_HPP
2 #define _GRL_EXCEPTION_HPP
3 
4 namespace grl {
5 
6  /// @see http://stackoverflow.com/questions/12498001/adding-several-boosterror-infos-of-the-same-type-to-a-boostexception
7  typedef boost::error_info<struct tag_errmsg, std::string> errmsg_info;
8 
9  struct driver_initialization_error : public boost::exception, public std::exception
10  {
11  const char *what() const noexcept { return "driver initialization failed"; }
12  };
13 }
14 #endif // _GRL_EXCEPTION_HPP
boost::error_info< struct tag_errmsg, std::string > errmsg_info
Definition: exception.hpp:7
const char * what() const noexcept
Definition: exception.hpp:11