Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ObjectNotFoundException |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2003-2004 The Apache Software Foundation. | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | ||
17 | package org.apache.commons.mapper; | |
18 | ||
19 | /** | |
20 | * Indicates that the requested Object could not be found in the datastore. Many | |
21 | * times this is an acceptable condition and the Object can be set to null. | |
22 | * However, if the client code expects a valid object, this exception can be thrown | |
23 | * to indicate the error. | |
24 | */ | |
25 | public class ObjectNotFoundException extends MapperException { | |
26 | ||
27 | /** | |
28 | * Constructor for ObjectNotFoundException. | |
29 | */ | |
30 | public ObjectNotFoundException() { | |
31 | 0 | super(); |
32 | 0 | } |
33 | ||
34 | /** | |
35 | * Constructor for ObjectNotFoundException. | |
36 | * @param description | |
37 | */ | |
38 | public ObjectNotFoundException(String description) { | |
39 | 0 | super(description); |
40 | 0 | } |
41 | ||
42 | /** | |
43 | * Constructor for ObjectNotFoundException. | |
44 | * @param description | |
45 | * @param cause | |
46 | */ | |
47 | public ObjectNotFoundException(String description, Throwable cause) { | |
48 | 0 | super(description, cause); |
49 | 0 | } |
50 | ||
51 | /** | |
52 | * Constructor for ObjectNotFoundException. | |
53 | * @param cause | |
54 | */ | |
55 | public ObjectNotFoundException(Throwable cause) { | |
56 | 0 | super(cause); |
57 | 0 | } |
58 | ||
59 | } |