Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/thread/src/exceptions.cpp @ 45

Last change on this file since 45 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.2 KB
Line 
1// Copyright (C) 2001-2003
2// William E. Kempf
3//
4//  Distributed under the Boost Software License, Version 1.0. (See accompanying
5//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7#include <boost/thread/detail/config.hpp>
8
9#include <boost/thread/exceptions.hpp>
10#include <cstring>
11#include <string>
12
13namespace boost {
14
15thread_exception::thread_exception()
16    : m_sys_err(0)
17{
18}
19
20thread_exception::thread_exception(int sys_err_code)
21    : m_sys_err(sys_err_code)
22{
23}
24
25thread_exception::~thread_exception() throw()
26{
27}
28
29int thread_exception::native_error() const
30{
31    return m_sys_err; 
32}
33
34lock_error::lock_error()
35{
36}
37
38lock_error::lock_error(int sys_err_code)
39    : thread_exception(sys_err_code)
40{
41}
42
43lock_error::~lock_error() throw()
44{
45}
46
47const char* lock_error::what() const throw()
48{
49    return "boost::lock_error";
50}
51
52thread_resource_error::thread_resource_error()
53{
54}
55
56thread_resource_error::thread_resource_error(int sys_err_code)
57    : thread_exception(sys_err_code)
58{
59}
60
61thread_resource_error::~thread_resource_error() throw()
62{
63}
64
65const char* thread_resource_error::what() const throw()
66{
67    return "boost::thread_resource_error";
68}
69
70unsupported_thread_option::unsupported_thread_option()
71{
72}
73
74unsupported_thread_option::unsupported_thread_option(int sys_err_code)
75    : thread_exception(sys_err_code)
76{
77}
78
79unsupported_thread_option::~unsupported_thread_option() throw()
80{
81}
82
83const char* unsupported_thread_option::what() const throw()
84{
85    return "boost::unsupported_thread_option";
86}
87
88invalid_thread_argument::invalid_thread_argument()
89{
90}
91
92invalid_thread_argument::invalid_thread_argument(int sys_err_code)
93    : thread_exception(sys_err_code)
94{
95}
96
97invalid_thread_argument::~invalid_thread_argument() throw()
98{
99}
100
101const char* invalid_thread_argument::what() const throw()
102{
103    return "boost::invalid_thread_argument";
104}
105
106thread_permission_error::thread_permission_error()
107{
108}
109
110thread_permission_error::thread_permission_error(int sys_err_code)
111    : thread_exception(sys_err_code)
112{
113}
114
115thread_permission_error::~thread_permission_error() throw()
116{
117}
118
119const char* thread_permission_error::what() const throw()
120{
121    return "boost::thread_permission_error";
122}
123
124} // namespace boost
Note: See TracBrowser for help on using the repository browser.