classLagSHTError:publicstd::exception{public:explicitLagSHTError(conststd::string&m):msg_(m){}explicitLagSHTError(constchar*m):msg_(m){}virtual~LagSHTError()throw(){}//! Implementation of std::exception what() method, returning the exception messagevirtualconstchar*what()constthrow(){returnmsg_.c_str();}private:std::stringmsg_;};//LagSHTError