Clementine
bad_executor.hpp
1 //
2 // execution/bad_executor.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_EXECUTION_BAD_EXECUTOR_HPP
12 #define ASIO_EXECUTION_BAD_EXECUTOR_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include <exception>
20 #include "asio/detail/push_options.hpp"
21 
22 namespace asio {
23 namespace execution {
24 
27  : public std::exception
28 {
29 public:
31  ASIO_DECL bad_executor() ASIO_NOEXCEPT;
32 
34  ASIO_DECL virtual const char* what() const
35  ASIO_NOEXCEPT_OR_NOTHROW;
36 };
37 
38 } // namespace execution
39 } // namespace asio
40 
41 #include "asio/detail/pop_options.hpp"
42 
43 #if defined(ASIO_HEADER_ONLY)
44 # include "asio/execution/impl/bad_executor.ipp"
45 #endif // defined(ASIO_HEADER_ONLY)
46 
47 #endif // ASIO_EXECUTION_BAD_EXECUTOR_HPP
Exception thrown when trying to access an empty polymorphic executor.
Definition: bad_executor.hpp:26
virtual ASIO_DECL const char * what() const ASIO_NOEXCEPT_OR_NOTHROW
Obtain message associated with exception.
Definition: bad_executor.ipp:30
ASIO_DECL bad_executor() ASIO_NOEXCEPT
Constructor.
Definition: bad_executor.ipp:26
Definition: handler_work.hpp:37
Definition: any_io_executor.hpp:28