整理
This commit is contained in:
35
include/boost/process/v1/exception.hpp
Normal file
35
include/boost/process/v1/exception.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
// Copyright (c) 2016 Klemens D. Morgenstern
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#ifndef BOOST_PROCESS_EXCEPTION_HPP_
|
||||
#define BOOST_PROCESS_EXCEPTION_HPP_
|
||||
|
||||
#include <system_error>
|
||||
#include <boost/process/v1/detail/config.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace process
|
||||
{
|
||||
|
||||
BOOST_PROCESS_V1_INLINE namespace v1
|
||||
{
|
||||
|
||||
///The exception usually thrown by boost.process.v1.
|
||||
/** It merely inherits [std::system_error](http://en.cppreference.com/w/cpp/error/system_error)
|
||||
* but can then be distinguished in the catch-block from other system errors.
|
||||
*
|
||||
*/
|
||||
struct process_error : std::system_error
|
||||
{
|
||||
using std::system_error::system_error;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif /* BOOST_PROCESS_EXCEPTION_HPP_ */
|
||||
Reference in New Issue
Block a user