12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef BOOST_UUID_ENTROPY_ERROR_HPP_INCLUDED
- #define BOOST_UUID_ENTROPY_ERROR_HPP_INCLUDED
- #include <boost/config.hpp>
- #include <stdexcept>
- #include <string>
- #include <cstdint>
- namespace boost {
- namespace uuids {
- class BOOST_SYMBOL_VISIBLE entropy_error : public std::runtime_error
- {
- public:
- entropy_error(std::intmax_t errCode, const std::string& message)
- : std::runtime_error(message)
- , m_errcode(errCode)
- {
- }
- virtual std::intmax_t errcode() const
- {
- return m_errcode;
- }
- private:
- std::intmax_t m_errcode;
- };
- }
- }
- #endif
|