~ubuntu-branches/ubuntu/gutsy/libcorelinux/gutsy

« back to all changes in this revision

Viewing changes to corelinux/BoundsException.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2001-12-29 17:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20011229174334-ejlsuilsiro5vmzr
Tags: 0.4.32-4
* fix config.{guess,sub} out of date on hppa and s390 (closes: #124296,#121830)
* try to be more descriptive in the description of the package  (closes: #115758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if !defined (__BOUNDSEXCEPTION_HPP)
 
2
#define __BOUNDSEXCEPTION_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(__STORAGEEXCEPTION_HPP)
 
29
#include <StorageException.hpp>
 
30
#endif
 
31
 
 
32
namespace corelinux
 
33
{
 
34
 
 
35
   DECLARE_CLASS( BoundsException );
 
36
 
 
37
   /**
 
38
   BoundsException is a type of StorageException, characterized when
 
39
   access to a storage object is invalid.
 
40
   */
 
41
 
 
42
   class BoundsException : public StorageException
 
43
   {
 
44
   
 
45
   public:
 
46
   
 
47
                        /**
 
48
                        Default Constructor
 
49
                        @param why describes why the exception was thrown
 
50
                        @param file The source module throwing the exception
 
51
                        @param line The line of source throwing the exception
 
52
                        @param severity The Exception::Severity of the Exception
 
53
                        @param outOfMemory An out of memory indicator
 
54
                        */
 
55
 
 
56
                        BoundsException
 
57
                        (
 
58
                           CharCptr why,
 
59
                           CharCptr file,
 
60
                           LineNum  line,
 
61
                           Severity severity = Exception::CONTINUABLE,
 
62
                           bool     outOfMemory = false 
 
63
                        );
 
64
 
 
65
                        /**
 
66
                        Default Constructor
 
67
                        @param file The source module throwing the exception
 
68
                        @param line The line of source throwing the exception
 
69
                        @param severity The Exception::Severity of the Exception
 
70
                        @param outOfMemory An out of memory indicator
 
71
                        */
 
72
 
 
73
                        BoundsException
 
74
                        (
 
75
                           CharCptr file,
 
76
                           LineNum  line,
 
77
                           Severity severity = Exception::CONTINUABLE,
 
78
                           bool     outOfMemory = false 
 
79
                        );
 
80
   
 
81
                        /**
 
82
                        Copy constructor
 
83
                        @param BoundsException const reference
 
84
                        */
 
85
                     
 
86
                        BoundsException( BoundsExceptionCref );
 
87
   
 
88
                        /// Virtual Destructor
 
89
   
 
90
      virtual           ~BoundsException( void );
 
91
   
 
92
         //
 
93
         // Operator overloads
 
94
         //
 
95
   
 
96
               /**
 
97
               Assignment operator overload
 
98
               @param  BoundsException const reference
 
99
               @return BoundsException reference to self
 
100
               */
 
101
            
 
102
               BoundsExceptionRef   operator=( BoundsExceptionCref );
 
103
            
 
104
               /**
 
105
               Equality operator overload
 
106
               @param BoundsException const reference
 
107
               @return true if equal, false otherwise
 
108
               */
 
109
 
 
110
               bool           operator==( BoundsExceptionCref ) const;
 
111
            
 
112
         //
 
113
         // Accessor methods
 
114
         //
 
115
   
 
116
            
 
117
         //
 
118
         // Mutator methods
 
119
         //
 
120
   
 
121
   
 
122
   protected:
 
123
 
 
124
                        /**
 
125
                        BoundsException must have at least
 
126
                        a location..
 
127
                        Default constructor is not allowed.
 
128
                        */   
 
129
                     
 
130
                        BoundsException( void );
 
131
   };
 
132
 
 
133
}
 
134
 
 
135
 
 
136
#endif  // !defined __BOUNDSEXCEPTION_HPP
 
137
 
 
138
/*
 
139
   Common rcs information do not modify
 
140
   $Author: prudhomm $
 
141
   $Revision: 1.1 $
 
142
   $Date: 2000/04/23 20:43:13 $
 
143
   $Locker:  $
 
144
*/
 
145
 
 
146