Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MaximumDocumentSizeException |
|
| 1.0;1 |
1 | 0 | package pt.digitalis.dif.utils.extensions.document; |
2 | ||
3 | /** | |
4 | * @author Luis Pinto <a href="mailto:lpinto@digitalis.pt">lpinto@digitalis.pt</a><br/> | |
5 | * @created Sep 22, 2009 | |
6 | */ | |
7 | public class MaximumDocumentSizeException extends DocumentRepositoryException { | |
8 | ||
9 | /** the limit defined when the exception was launched */ | |
10 | private Integer limit; | |
11 | ||
12 | /** | |
13 | * MaximumSizeDocumentException constructor | |
14 | * | |
15 | * @param reason | |
16 | * @param limit | |
17 | */ | |
18 | public MaximumDocumentSizeException(String reason, Integer limit) | |
19 | { | |
20 | 0 | super(reason); |
21 | 0 | this.setLimit(limit); |
22 | 0 | } |
23 | ||
24 | /** */ | |
25 | private static final long serialVersionUID = 1L; | |
26 | ||
27 | ||
28 | /** | |
29 | * Inspector for the 'limit' attribute. | |
30 | * | |
31 | * @return the limit value | |
32 | */ | |
33 | public Integer getLimit() | |
34 | { | |
35 | 0 | return limit; |
36 | } | |
37 | ||
38 | ||
39 | /** | |
40 | * Modifier for the 'limit' attribute. | |
41 | * | |
42 | * @param limit the new limit value to set | |
43 | */ | |
44 | private void setLimit(Integer limit) | |
45 | { | |
46 | 0 | this.limit = limit; |
47 | 0 | } |
48 | ||
49 | } |