error.hpp 885 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Copyright (c) 2016-2017 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/error.hpp>
  12. #include <boost/beast/experimental/test/detail/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 the test @ref stream when it
  21. generates a simulated error.
  22. */
  23. test_failure = 1
  24. };
  25. } // test
  26. } // beast
  27. } // boost
  28. #include <boost/beast/experimental/test/impl/error.ipp>
  29. #endif