-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue/#660 Added log with error detail when execution failed and also…
… rollback failed (non transactional execution). (#670)
- Loading branch information
1 parent
dd9cc34
commit 59f34da
Showing
3 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...ock-core/mongock-api/src/main/java/io/mongock/api/exception/MongockRollbackException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.mongock.api.exception; | ||
|
||
/** | ||
* | ||
*/ | ||
public class MongockRollbackException extends MongockException { | ||
|
||
private MongockException executionException; | ||
private MongockException rollbackException; | ||
|
||
public MongockRollbackException(MongockException executionException, MongockException rollbackException) { | ||
super(); | ||
this.executionException = executionException; | ||
this.rollbackException = rollbackException; | ||
} | ||
|
||
public MongockException getExecutionException() { | ||
return executionException; | ||
} | ||
|
||
public MongockException getRollbackException() { | ||
return rollbackException; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters