error.hpp 973 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // Official repository: https://github.com/boostorg/beast
  8. //
  9. #ifndef BOOST_BEAST_TEST_ERROR_HPP
  10. #define BOOST_BEAST_TEST_ERROR_HPP
  11. #include <boost/beast/core/detail/config.hpp>
  12. #include <boost/beast/core/error.hpp>
  13. namespace boost {
  14. namespace beast {
  15. namespace test {
  16. /// Error codes returned from unit testing algorithms
  17. enum class error
  18. {
  19. /** The test stream generated a simulated testing error
  20. This error is returned by a @ref fail_count object
  21. when it generates a simulated error.
  22. */
  23. test_failure = 1
  24. };
  25. } // test
  26. } // beast
  27. } // boost
  28. #include <boost/beast/_experimental/test/impl/error.hpp>
  29. #ifdef BOOST_BEAST_HEADER_ONLY
  30. #include <boost/beast/_experimental/test/impl/error.ipp>
  31. #endif
  32. #endif