Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 33 | PointedEar | 1 | //$Id: NonUniqueResultException.java 11282 2007-03-14 22:05:59Z epbernard $ |
| 2 | package javax.persistence; |
||
| 3 | |||
| 4 | /** |
||
| 5 | * Thrown by the persistence provider when getSingleResult() is executed on a query and there is more than |
||
| 6 | * one result from the query. This exception will not cause the current transaction, if one is active, to be |
||
| 7 | * marked for roll back. |
||
| 8 | * |
||
| 9 | * @author Gavin King |
||
| 10 | */ |
||
| 11 | public class NonUniqueResultException extends PersistenceException { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Constructs a new NonUniqueResultException exception with null as its detail message |
||
| 15 | */ |
||
| 16 | public NonUniqueResultException() { |
||
| 17 | super(); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructs a new NonUniqueResultException exception with the specified detail message |
||
| 22 | * |
||
| 23 | * @param message |
||
| 24 | */ |
||
| 25 | public NonUniqueResultException(String message) { |
||
| 26 | super( message ); |
||
| 27 | } |
||
| 28 | |||
| 29 | } |