Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: $ |
2 | package javax.persistence; |
||
3 | |||
4 | /** |
||
5 | * Thrown by the persistence provider when the EntityTransaction.commit() fails |
||
6 | * |
||
7 | * @author Emmanuel Bernard |
||
8 | */ |
||
9 | public class RollbackException extends PersistenceException { |
||
10 | /** |
||
11 | * Constructs a new RollbackException exception with null as its detail message |
||
12 | */ |
||
13 | public RollbackException() { |
||
14 | super(); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Constructs a new RollbackException exception with the specified cause |
||
19 | * |
||
20 | * @param cause The detail cause |
||
21 | */ |
||
22 | public RollbackException(Throwable cause) { |
||
23 | super( cause ); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Constructs a new RollbackException exception with the specified detail message |
||
28 | * |
||
29 | * @param message The detail message |
||
30 | */ |
||
31 | public RollbackException(String message) { |
||
32 | super( message ); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Constructs a new RollbackException exception with the specified detail message and cause |
||
37 | * |
||
38 | * @param message The detail message |
||
39 | * @param cause The detail cause |
||
40 | */ |
||
41 | public RollbackException(String message, Throwable cause) { |
||
42 | super( message, cause ); |
||
43 | } |
||
44 | } |