← Files ForgeMindARCHIVED FILE
src/errors.mjs
453 Bytes · Oct 2, 2026 · 00:31 UTC
export class ForgeMindError extends Error {
constructor(code, message, options = {}) {
super(message, options);
this.name = 'ForgeMindError';
this.code = code;
this.exitCode = options.exitCode ?? 1;
this.remediation = options.remediation;
this.details = options.details;
}
}
export function invalidInput(code, message, options = {}) {
return new ForgeMindError(code, message, { ...options, exitCode: 2 });
}
SHA-256: 373725b06d3612dba318a29dd1fb6bb1f0c4c62e09c2e09e090968a97e3db4ec