exception.hpp 710 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2016 Klemens D. Morgenstern
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PROCESS_EXCEPTION_HPP_
  6. #define BOOST_PROCESS_EXCEPTION_HPP_
  7. #include <system_error>
  8. namespace boost
  9. {
  10. namespace process
  11. {
  12. ///The exception usually thrown by boost.process.
  13. /** It merely inherits [std::system_error](http://en.cppreference.com/w/cpp/error/system_error)
  14. * but can then be distinguished in the catch-block from other system errors.
  15. *
  16. */
  17. struct process_error : std::system_error
  18. {
  19. using std::system_error::system_error;
  20. };
  21. }
  22. }
  23. #endif /* BOOST_PROCESS_EXCEPTION_HPP_ */