Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
UniqueFieldAlreadyExistsException |
|
| 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 a record was unable to be created in the datastore because a | |
21 | * unique field would have duplicates. This could be a primary key or unique | |
22 | * constraint in a database. | |
23 | */ | |
24 | public class UniqueFieldAlreadyExistsException extends MapperException { | |
25 | ||
26 | /** | |
27 | * Constructor for UniqueFieldAlreadyExistsException. | |
28 | */ | |
29 | public UniqueFieldAlreadyExistsException() { | |
30 | 0 | super(); |
31 | 0 | } |
32 | ||
33 | /** | |
34 | * Constructor for UniqueFieldAlreadyExistsException. | |
35 | * @param description | |
36 | */ | |
37 | public UniqueFieldAlreadyExistsException(String description) { | |
38 | 0 | super(description); |
39 | 0 | } |
40 | ||
41 | /** | |
42 | * Constructor for UniqueFieldAlreadyExistsException. | |
43 | * @param description | |
44 | * @param cause | |
45 | */ | |
46 | public UniqueFieldAlreadyExistsException(String description, Throwable cause) { | |
47 | 0 | super(description, cause); |
48 | 0 | } |
49 | ||
50 | /** | |
51 | * Constructor for UniqueFieldAlreadyExistsException. | |
52 | * @param cause | |
53 | */ | |
54 | public UniqueFieldAlreadyExistsException(Throwable cause) { | |
55 | 0 | super(cause); |
56 | 0 | } |
57 | ||
58 | } |