// Typed error taxonomy for keiko-memory-vault. Stable string codes so callers in audit (#214),
// capture (#207), and the eventual UI (#211) can branch on `error.code` without parsing messages.
// Messages MUST NOT include raw paths, SQL fragments, or system error strings — those surface to
// downstream BFF envelopes that may log to disk.
export class MemoryStorageError extends Error {
    code;
    constructor(code, message) {
        super(message);
        this.name = "MemoryStorageError";
        this.code = code;
    }
}
export class MemoryStorageValidationError extends MemoryStorageError {
    failures;
    constructor(message, failures) {
        super("invalid-input", message);
        this.name = "MemoryStorageValidationError";
        this.failures = failures;
    }
}
