CoreLinux++  0.4.32
InvalidThreadException.hpp
1 #if !defined (__INVALIDTHREADEXCEPTION_HPP)
2 #define __INVALIDTHREADEXCEPTION_HPP
3 
4 /*
5  CoreLinux++
6  Copyright (C) 2000 CoreLinux Consortium
7 
8  The CoreLinux++ Library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version.
12 
13  The CoreLinux++ Library Library is distributed in the hope that it will
14  be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public
19  License along with the GNU C Library; see the file COPYING.LIB. If not,
20  write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  Boston, MA 02111-1307, USA.
22 */
23 
24 #if !defined(__COMMON_HPP)
25 #include <Common.hpp>
26 #endif
27 
28 #if !defined(__THREADEXCEPTION_HPP)
29 #include <ThreadException.hpp>
30 #endif
31 
32 namespace corelinux
33 {
34 
35 
36  DECLARE_CLASS( InvalidThreadException );
37 
44  {
45 
46  public:
47 
57  (
58  CharCptr file,
59  LineNum line,
60  Severity severity = Exception::CONTINUABLE,
61  bool outOfMemory = false
62  );
63 
70 
72 
73  virtual ~InvalidThreadException( void );
74 
75  //
76  // Operator overloads
77  //
78 
86 
94 
95  //
96  // Accessor methods
97  //
98 
99 
100  //
101  // Mutator methods
102  //
103 
104 
105  protected:
106 
117  (
118  CharCptr why,
119  CharCptr file,
120  LineNum line,
121  Severity severity = Exception::CONTINUABLE,
122  bool outOfMemory = false
123  );
124 
131  InvalidThreadException( void );
132 
133  };
134 
135 }
136 
137 
138 #endif // !defined __InvalidThreadEXCEPTION_HPP
139 
140 /*
141  Common rcs information do not modify
142  $Author: prudhomm $
143  $Revision: 1.1 $
144  $Date: 2000/04/23 20:43:13 $
145  $Locker: $
146 */
147 
148 
ThreadException is the base exception type for Thread.
Definition: ThreadException.hpp:39
InvalidThreadExceptionRef operator=(InvalidThreadExceptionCref)
Assignment operator overload.
Definition: InvalidThreadException.cpp:108
InvalidThreadException describes an exception that is thrown when a operation is attempted on a non-m...
Definition: InvalidThreadException.hpp:43
InvalidThreadException(void)
InvalidThreadException must have at least a location.
Definition: InvalidThreadException.cpp:76
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
Severity
Exception Severity States.
Definition: Exception.hpp:59
virtual ~InvalidThreadException(void)
Virtual Destructor.
Definition: InvalidThreadException.cpp:98
bool operator==(InvalidThreadExceptionCref) const
Equality operator overload.
Definition: InvalidThreadException.cpp:120

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium