Warning, file /include/boost/uuid/entropy_error.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef BOOST_UUID_ENTROPY_ERROR_HPP_INCLUDED
0002 #define BOOST_UUID_ENTROPY_ERROR_HPP_INCLUDED
0003 
0004 
0005 
0006 
0007 
0008 
0009 
0010 
0011 
0012 
0013 
0014 #include <boost/config.hpp>
0015 #include <stdexcept>
0016 #include <string>
0017 #include <cstdint>
0018 
0019 namespace boost {
0020 namespace uuids {
0021 
0022 
0023 
0024 
0025 class BOOST_SYMBOL_VISIBLE entropy_error : public std::runtime_error
0026 {
0027 public:
0028     entropy_error(std::intmax_t errCode, const std::string& message)
0029         : std::runtime_error(message)
0030         , m_errcode(errCode)
0031     {
0032     }
0033 
0034     virtual std::intmax_t errcode() const
0035     {
0036         return m_errcode;
0037     }
0038 
0039 private:
0040     std::intmax_t m_errcode;
0041 };
0042 
0043 } 
0044 } 
0045 
0046 #endif