[framework] TxCore → common-framework #4

Open
forge-bot wants to merge 9 commits from forge/ACM-FW-001-attempt-2-run-764de03d4a1a into main
Showing only changes of commit cb8ea46749 - Show all commits

View file

@ -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;
}
}