Files
WT-Offline/packages/exepatch/src/errors.ts
T
N0VAN0M4LY c3914ec0d6 feat(patcher): build a loopback client copy with TypeScript
Add the shared BLK, VROMFS, executable patch, and build packages. Preserve
typed fields and shared name tables when reading BLK data. Rewrite the
service endpoints in place so the original environment names remain
available to the client, then build the client copy.
2026-11-24 00:35:13 +08:00

29 lines
882 B
TypeScript

/** A patch cannot be applied, so nothing was written. */
export class PatchError extends Error {
override name = 'PatchError';
}
/** A patch definition on disk is malformed. */
export class DefinitionError extends PatchError {
override name = 'DefinitionError';
}
/**
* A patch site could not be found, or was found in more than one place. The caller reports
* which patches and features are affected; it never falls back to a guessed address
*.
*/
export class LocateError extends PatchError {
override name = 'LocateError';
}
/** The bytes at a located site are not what the definition expects: a different game build, or already patched. */
export class VerifyError extends PatchError {
override name = 'VerifyError';
}
/** The file is not a PE executable this code understands. */
export class PeFormatError extends Error {
override name = 'PeFormatError';
}