001    package org.odmg;
002    
003    
004    
005    /**
006    
007     * An attempt to get a object via its name using <code>Database.lookup</code>
008    
009     * and the name is not associated with an object in the database.
010    
011     * @author      David Jordan (as Java Editor of the Object Data Management Group)
012    
013     * @version ODMG 3.0
014    
015     * @see org.odmg.Database#lookup
016    
017     */
018    
019    
020    
021    public class ObjectNameNotFoundException extends ODMGException
022    
023    {
024    
025    /*
026    
027            private String  n;
028    
029    
030    
031    * Construct an instance of the exception.
032    
033    * @param        name    The name passed to Database.lookup that is not associated with
034    
035    * any object in the database.
036    
037    
038    
039            public ObjectNameNotFoundException(String name)
040    
041      {
042    
043                    super();
044    
045            n = name;
046    
047      }
048    
049    
050    
051    
052    
053    *       Access the name that is not bound to any object in the database.
054    
055    * @return       The name that was passed to Database.lookup.
056    
057    
058    
059      public String getName()
060    
061      {
062    
063            return n;
064    
065      }
066    
067    */
068    
069    /*
070    
071            private String  n;
072    
073    
074    
075    * Construct an instance of the exception.
076    
077    * @param        name    The name passed to Database.lookup that is not associated with
078    
079    * any object in the database.
080    
081    
082    
083            public ObjectNameNotFoundException(String name)
084    
085      {
086    
087                    super();
088    
089            n = name;
090    
091      }
092    
093    
094    
095    
096    
097    *       Access the name that is not bound to any object in the database.
098    
099    * @return       The name that was passed to Database.lookup.
100    
101    
102    
103      public String getName()
104    
105      {
106    
107            return n;
108    
109      }
110    
111    */
112    
113    /*
114    
115            private String  n;
116    
117    
118    
119    * Construct an instance of the exception.
120    
121    * @param        name    The name passed to Database.lookup that is not associated with
122    
123    * any object in the database.
124    
125    
126    
127            public ObjectNameNotFoundException(String name)
128    
129      {
130    
131                    super();
132    
133            n = name;
134    
135      }
136    
137    
138    
139    
140    
141    *       Access the name that is not bound to any object in the database.
142    
143    * @return       The name that was passed to Database.lookup.
144    
145    
146    
147      public String getName()
148    
149      {
150    
151            return n;
152    
153      }
154    
155    */
156    
157        /**
158    
159         * Construct an instance of the exception.
160    
161         */
162    
163        public ObjectNameNotFoundException()
164    
165        {
166    
167            super();
168    
169        }
170    
171    
172    
173        /**
174    
175         * Construct an instance of the exception with a descriptive message.
176    
177         * @param msg       A message describing the exception.
178    
179         */
180    
181        public ObjectNameNotFoundException(String msg)
182    
183        {
184    
185            super(msg);
186    
187        }
188    
189    /*
190    
191            private String  n;
192    
193    
194    
195    * Construct an instance of the exception.
196    
197    * @param        name    The name passed to Database.lookup that is not associated with
198    
199    * any object in the database.
200    
201    
202    
203            public ObjectNameNotFoundException(String name)
204    
205      {
206    
207                    super();
208    
209            n = name;
210    
211      }
212    
213    
214    
215    
216    
217    *       Access the name that is not bound to any object in the database.
218    
219    * @return       The name that was passed to Database.lookup.
220    
221    
222    
223      public String getName()
224    
225      {
226    
227            return n;
228    
229      }
230    
231    */
232    
233    }
234