File indexing completed on 2025-01-18 09:53:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_UUID_RANDOM_ENTROPY_ERROR_HPP
0012 #define BOOST_UUID_RANDOM_ENTROPY_ERROR_HPP
0013
0014 #include <boost/config.hpp>
0015 #include <boost/cstdint.hpp>
0016 #include <stdexcept>
0017 #include <string>
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(boost::intmax_t errCode, const std::string& message)
0029 : std::runtime_error(message)
0030 , m_errcode(errCode)
0031 {
0032 }
0033
0034 virtual boost::intmax_t errcode() const
0035 {
0036 return m_errcode;
0037 }
0038
0039 private:
0040 boost::intmax_t m_errcode;
0041 };
0042
0043 }
0044 }
0045
0046 #endif