[framework] TxCore → common-framework (ACM-FW-001)
This commit is contained in:
parent
2de2967932
commit
cb8ea46749
1 changed files with 35 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.klaro.acquirecore.framework;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exception thrown when transaction execution fails.
|
||||||
|
* Migrated from txcore.c error handling patterns.
|
||||||
|
*/
|
||||||
|
public class TxExecutionException extends RuntimeException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private final TxContext context;
|
||||||
|
|
||||||
|
public TxExecutionException(String message) {
|
||||||
|
super(message);
|
||||||
|
this.context = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TxExecutionException(String message, Throwable cause) {
|
||||||
|
super(message, cause);
|
||||||
|
this.context = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TxExecutionException(String message, Throwable cause, TxContext context) {
|
||||||
|
super(message, cause);
|
||||||
|
this.context = context;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TxExecutionException(String message, TxContext context) {
|
||||||
|
super(message);
|
||||||
|
this.context = context;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TxContext getContext() {
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in a new issue