Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: NoResultException.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 no result to return. |
||
6 | * This exception will not cause the current transaction, if one is active, to be marked for roll back. |
||
7 | * |
||
8 | * @author Emmanuel Bernard |
||
9 | */ |
||
10 | public class NoResultException extends PersistenceException { |
||
11 | |||
12 | /** |
||
13 | * Constructs a new NoResultException exception with null as its detail message |
||
14 | */ |
||
15 | public NoResultException() { |
||
16 | super(); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * Constructs a new NoResultException exception with the specified detail message. |
||
21 | * |
||
22 | * @param message |
||
23 | */ |
||
24 | public NoResultException(String message) { |
||
25 | super( message ); |
||
26 | } |
||
27 | } |