Resolve "WIP: UTXO Selection and Storage"

This commit is contained in:
Jim Hamill
2025-01-11 08:39:24 +00:00
parent f934216d68
commit 33fd9bac4d
156 changed files with 13304 additions and 4595 deletions
+20
View File
@@ -0,0 +1,20 @@
export class ExtError extends Error {
constructor(
message: string,
public readonly details?: string,
) {
super(message);
// Capture the stack trace (V8 engines only)
// This step ensures the stack trace is captured correctly
if (Error.captureStackTrace) {
Error.captureStackTrace(this, ExtError);
} else {
this.stack = new Error().stack;
console.error(this.stack);
}
// 👇️ because we are extending a built-in class
Object.setPrototypeOf(this, ExtError.prototype);
}
}