File: wait_error.hpp

package info (click to toggle)
supercollider 1%3A3.11.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 71,152 kB
  • sloc: cpp: 387,846; lisp: 80,328; ansic: 76,515; sh: 22,779; python: 7,932; makefile: 2,333; perl: 1,123; javascript: 915; java: 677; xml: 582; yacc: 314; lex: 175; objc: 152; ruby: 136
file content (58 lines) | stat: -rwxr-xr-x 1,308 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * 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)
 *
 * (C) Copyright 2013 Andrey Semashev
 */
/*!
 * \file   exceptions/wait_error.hpp
 *
 * \brief  This header defines the \c wait_error exception.
 */

#ifndef BOOST_SYNC_EXCEPTIONS_WAIT_ERROR_HPP_INCLUDED_
#define BOOST_SYNC_EXCEPTIONS_WAIT_ERROR_HPP_INCLUDED_

#include <string>
#include <boost/sync/detail/config.hpp>
#include <boost/sync/detail/system_error.hpp>
#include <boost/sync/exceptions/runtime_exception.hpp>
#include <boost/sync/detail/header.hpp>

#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif

namespace boost {

namespace sync {

class BOOST_SYMBOL_VISIBLE wait_error :
    public runtime_exception
{
public:
    explicit wait_error(int sys_err = 0) : runtime_exception(sys_err, "boost::sync::wait_error")
    {
    }

    wait_error(int sys_err, const char* what) : runtime_exception(sys_err, what)
    {
    }

    wait_error(int sys_err, std::string const& what) : runtime_exception(sys_err, what)
    {
    }

    ~wait_error() BOOST_NOEXCEPT_OR_NOTHROW
    {
    }
};

} // namespace sync

} // namespace boost

#include <boost/sync/detail/footer.hpp>

#endif // BOOST_SYNC_EXCEPTIONS_WAIT_ERROR_HPP_INCLUDED_