Commit 7a141f38d1d880612b8c4c1d8c2d29f220f79e0c
1 parent
9816002b
Exists in
master
Ajuste de exceção lançada.
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
impl/extension/jdbc/src/main/java/br/gov/frameworkdemoiselle/transaction/JDBCTransaction.java
| ... | ... | @@ -45,6 +45,7 @@ import java.util.Collections; |
| 45 | 45 | import java.util.HashMap; |
| 46 | 46 | import java.util.Map; |
| 47 | 47 | |
| 48 | +import br.gov.frameworkdemoiselle.DemoiselleException; | |
| 48 | 49 | import br.gov.frameworkdemoiselle.annotation.Priority; |
| 49 | 50 | import br.gov.frameworkdemoiselle.internal.producer.ConnectionProducer; |
| 50 | 51 | import br.gov.frameworkdemoiselle.util.Beans; |
| ... | ... | @@ -97,7 +98,7 @@ public class JDBCTransaction implements Transaction { |
| 97 | 98 | try { |
| 98 | 99 | connection.commit(); |
| 99 | 100 | } catch (Exception cause) { |
| 100 | - throw new TransactionException(cause); | |
| 101 | + throw new DemoiselleException(cause); | |
| 101 | 102 | } |
| 102 | 103 | } |
| 103 | 104 | } |
| ... | ... | @@ -108,7 +109,7 @@ public class JDBCTransaction implements Transaction { |
| 108 | 109 | try { |
| 109 | 110 | connection.rollback(); |
| 110 | 111 | } catch (Exception cause) { |
| 111 | - throw new TransactionException(cause); | |
| 112 | + throw new DemoiselleException(cause); | |
| 112 | 113 | } |
| 113 | 114 | } |
| 114 | 115 | } | ... | ... |