CoreLinux++  0.4.32
NullPointerException.hpp
1 #if !defined (__NULLPOINTEREXCEPTION_HPP)
2 #define __NULLPOINTEREXCEPTION_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 
25 #if !defined IN_COMMON_HPP
26  #error NullPointerException.hpp is included by Common.hpp only.
27 #endif
28 
29 namespace corelinux
30 {
31 
32 
33  DECLARE_CLASS( NullPointerException );
34 
41  {
42 
43  public:
44 
55  (
56  CharCptr why,
57  CharCptr file,
58  LineNum line,
59  Severity severity = Exception::CONTINUABLE,
60  bool outOfMemory = false
61  );
62 
72  (
73  CharCptr file,
74  LineNum line,
75  Severity severity = Exception::CONTINUABLE,
76  bool outOfMemory = false
77  );
78 
85 
87 
88  virtual ~NullPointerException( void );
89 
90  //
91  // Operator overloads
92  //
93 
101 
108  bool operator==( NullPointerExceptionCref ) const;
109 
110  //
111  // Accessor methods
112  //
113 
114 
115  //
116  // Mutator methods
117  //
118 
119 
120  protected:
121 
128  NullPointerException( void );
129  };
130 
131 }
132 
133 
134 #endif // !defined __NULLPOINTEREXCEPTION_HPP
135 
136 /*
137  Common rcs information do not modify
138  $Author: frankc $
139  $Revision: 1.1 $
140  $Date: 2000/05/06 12:44:06 $
141  $Locker: $
142 */
143 
144 
145 
NullPointerException(void)
NullPointerException must have at least a location.
Definition: NullPointerException.cpp:69
virtual ~NullPointerException(void)
Virtual Destructor.
Definition: NullPointerException.cpp:91
bool operator==(NullPointerExceptionCref) const
Equality operator overload.
Definition: NullPointerException.cpp:113
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
NullPointerException is the base exception type for NullPointer.
Definition: NullPointerException.hpp:40
Severity
Exception Severity States.
Definition: Exception.hpp:59
Exception is the base exception class used in the CoreLinux++ libraries.
Definition: Exception.hpp:51
NullPointerExceptionRef operator=(NullPointerExceptionCref)
Assignment operator overload.
Definition: NullPointerException.cpp:101

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