diff options
Diffstat (limited to 'boost/process/exception.hpp')
-rw-r--r-- | boost/process/exception.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/boost/process/exception.hpp b/boost/process/exception.hpp new file mode 100644 index 0000000000..1bb391117a --- /dev/null +++ b/boost/process/exception.hpp @@ -0,0 +1,30 @@ +// 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> + +namespace boost +{ +namespace process +{ +///The exception usually thrown by boost.process. +/** 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_ */ |