[framework] TxCore → common-framework (ACM-FW-001)

This commit is contained in:
forge-bot 2026-07-18 11:07:08 +00:00
parent 2de2967932
commit cb8ea46749

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