File: exceptions-ref.xml

package info (click to toggle)
boost 1.33.1-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 100,948 kB
  • ctags: 145,103
  • sloc: cpp: 573,492; xml: 49,055; python: 15,626; ansic: 13,588; sh: 2,099; yacc: 858; makefile: 660; perl: 427; lex: 111; csh: 6
file content (58 lines) | stat: -rw-r--r-- 1,866 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
  "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd" [
  <!ENTITY % threads.entities SYSTEM "entities.xml">
  %threads.entities;
]>
<header name="boost/thread/exceptions.hpp"
  last-revision="$Date: 2004/07/17 04:33:59 $">
  <namespace name="boost">
    <class name="lock_error">
		<purpose>
			<simpara>The lock_error class defines an exception type thrown
			to indicate a locking related error has been detected.</simpara>
		</purpose>

		<description>
			<simpara>Examples of errors indicated by a lock_error exception 
			include a lock operation which can be determined to result in a 
			deadlock, or unlock operations attempted by a thread that does 
			not own the lock.</simpara>
		</description>

		<inherit access="public">
			<type><classname>std::logical_error</classname></type>
		</inherit>

		<constructor>
			<effects><simpara>Constructs a <code>lock_error</code> object.
			</simpara></effects>
		</constructor>
	</class>

	<class name="thread_resource_error">
		<purpose>
			<simpara>The <classname>thread_resource_error</classname> class
			defines an exception type that is thrown by constructors in the
			&Boost.Threads; library when thread-related resources can not be 
			acquired.</simpara>
		</purpose>

		<description>
			<simpara><classname>thread_resource_error</classname> is used
			only when thread-related resources cannot be acquired; memory
			allocation failures are indicated by 
			<classname>std::bad_alloc</classname>.</simpara>
		</description>

		<inherit access="public">
			<type><classname>std::runtime_error</classname></type>
		</inherit>

		<constructor>
			<effects><simpara>Constructs a <code>thread_resource_error</code>
			object.</simpara></effects>
		</constructor>
	</class>
  </namespace>
</header>