%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.portals.graffito.jcr.exception.PersistenceException |
|
|
1 | /* |
|
2 | * Copyright 2000-2005 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 | package org.apache.portals.graffito.jcr.exception; |
|
17 | ||
18 | ||
19 | /** |
|
20 | * Occurs when it is not possible to persist an object |
|
21 | * |
|
22 | * @author <a href="mailto:christophe.lombart@sword-technologies.com">Christophe Lombart</a> |
|
23 | * @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a> |
|
24 | */ |
|
25 | public class PersistenceException extends NestableRuntimeException { |
|
26 | /** Use serialVersionUID for interoperability. */ |
|
27 | private final static long serialVersionUID = -643089296035094427L; |
|
28 | ||
29 | /** |
|
30 | * Not intended for usage. |
|
31 | */ |
|
32 | 0 | protected PersistenceException() { |
33 | 0 | } |
34 | ||
35 | /** |
|
36 | * Constructor with message. |
|
37 | * |
|
38 | * @param message the message associated to the exception |
|
39 | */ |
|
40 | public PersistenceException(String message) { |
|
41 | 0 | super(message); |
42 | 0 | } |
43 | ||
44 | /** |
|
45 | * Constructor with throwable object. |
|
46 | * |
|
47 | * @param nested the associated throwable object |
|
48 | */ |
|
49 | public PersistenceException(Throwable nested) { |
|
50 | 0 | super(nested); |
51 | 0 | } |
52 | ||
53 | /** |
|
54 | * Constructor with message and throwable object. |
|
55 | * |
|
56 | * @param message the message associated to the exception |
|
57 | * @param nested the associated throwable object |
|
58 | */ |
|
59 | public PersistenceException(String message, Throwable nested) { |
|
60 | 0 | super(message, nested); |
61 | 0 | } |
62 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |