12 lines
469 B
TypeScript
12 lines
469 B
TypeScript
/** Stable failures exposed by the session-persistence service. */
|
|
|
|
import type { SessionId } from '@deepseek-ai/dsh-session'
|
|
|
|
/** The requested Session identity has no materialized durable log. */
|
|
export class SessionPersistenceNotFoundError extends Error {
|
|
/** @param sessionId - absent durable Session identity. */
|
|
constructor(readonly sessionId: SessionId) {
|
|
super(`session "${sessionId}" not found`)
|
|
this.name = 'SessionPersistenceNotFoundError'
|
|
}
|
|
}
|