CoreLinux++  0.4.32
StorageException.hpp
1 #if !defined (__STORAGEEXCEPTION_HPP)
2 #define __STORAGEEXCEPTION_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( StorageException );
33 
39  class StorageException : public Exception
40  {
41 
42  public:
43 
54  (
55  CharCptr why,
56  CharCptr file,
57  LineNum line,
58  Severity severity = Exception::CONTINUABLE,
59  bool outOfMemory = false
60  );
61 
71  (
72  CharCptr file,
73  LineNum line,
74  Severity severity = Exception::CONTINUABLE,
75  bool outOfMemory = false
76  );
77 
84 
86 
87  virtual ~StorageException( void );
88 
89  //
90  // Operator overloads
91  //
92 
100 
107  bool operator==( StorageExceptionCref ) const;
108 
109  //
110  // Accessor methods
111  //
112 
113 
114  //
115  // Mutator methods
116  //
117 
118 
119  protected:
120 
127  StorageException( void );
128  };
129 
130 }
131 
132 
133 #endif // !defined __STORAGEEXCEPTION_HPP
134 
135 /*
136  Common rcs information do not modify
137  $Author: prudhomm $
138  $Revision: 1.1 $
139  $Date: 2000/04/23 20:43:13 $
140  $Locker: $
141 */
142 
143 
StorageException(void)
StorageException must have at least a location.
Definition: StorageException.cpp:69
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
Severity
Exception Severity States.
Definition: Exception.hpp:59
StorageException is the base exception type for Storage.
Definition: StorageException.hpp:39
bool operator==(StorageExceptionCref) const
Equality operator overload.
Definition: StorageException.cpp:113
Exception is the base exception class used in the CoreLinux++ libraries.
Definition: Exception.hpp:51
StorageExceptionRef operator=(StorageExceptionCref)
Assignment operator overload.
Definition: StorageException.cpp:101
virtual ~StorageException(void)
Virtual Destructor.
Definition: StorageException.cpp:91

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