CoreLinux++  0.4.32
CompositeException.hpp
1 #if !defined (__COMPOSITEEXCEPTION_HPP)
2 #define __COMPOSITEEXCEPTION_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 namespace corelinux
29 {
30 
31 
32  DECLARE_CLASS( CompositeException );
33 
40  {
41 
42  public:
43 
53  (
54  CharCptr file,
55  LineNum line,
56  Severity severity = Exception::CONTINUABLE,
57  bool outOfMemory = false
58  );
59 
66 
68 
69  virtual ~CompositeException( void );
70 
71  //
72  // Operator overloads
73  //
74 
82 
89  bool operator==( CompositeExceptionCref ) const;
90 
91  //
92  // Accessor methods
93  //
94 
95 
96  //
97  // Mutator methods
98  //
99 
100 
101  protected:
102 
113  (
114  CharCptr why,
115  CharCptr file,
116  LineNum line,
117  Severity severity = Exception::CONTINUABLE,
118  bool outOfMemory = false
119  );
120 
127  CompositeException( void );
128 
129 
130  private:
131 
132  private:
133 
134  };
135 
136 }
137 
138 
139 #endif // !defined __COMPOSITEEXCEPTION_HPP
140 
141 /*
142  Common rcs information do not modify
143  $Author: prudhomm $
144  $Revision: 1.1 $
145  $Date: 2000/04/23 20:43:13 $
146  $Locker: $
147 */
148 
149 
150 
CompositeException is the base exception type for Composite.
Definition: CompositeException.hpp:39
bool operator==(CompositeExceptionCref) const
Equality operator overload.
Definition: CompositeException.cpp:113
CompositeExceptionRef operator=(CompositeExceptionCref)
Assignment operator overload.
Definition: CompositeException.cpp:101
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
Severity
Exception Severity States.
Definition: Exception.hpp:59
CompositeException(void)
CompositeException must have at least a location.
Definition: CompositeException.cpp:69
Exception is the base exception class used in the CoreLinux++ libraries.
Definition: Exception.hpp:51
virtual ~CompositeException(void)
Virtual Destructor.
Definition: CompositeException.cpp:91

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