mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 08:47:00 +00:00
Record the first transport failure before SDK teardown, then capture terminal stderr after owned retirement. Preserve exact opaque cancellation reasons and keep foreign cleanup ownership separate through retries. Validation: 119 focused tests across eight files; five selected baseline regressions; check:fast, docs:check, test discovery; nine real CLI and nine real MCP tiny-APK inspections. Native Windows/Linux startup failures and actual JVM OOM remain unverified. Closes #4844
12 lines
424 B
TypeScript
12 lines
424 B
TypeScript
/** An Android checkpoint observed interruption; the caller's reason stays opaque. */
|
|
export class JadxInterruption extends Error {
|
|
constructor(readonly reason: unknown) {
|
|
super("Android operation interrupted", { cause: reason });
|
|
this.name = "AbortError";
|
|
}
|
|
}
|
|
|
|
export const throwIfJadxInterrupted = (signal?: AbortSignal): void => {
|
|
if (signal?.aborted === true) throw new JadxInterruption(signal.reason);
|
|
};
|