fix(session): type busy errors (#27410)
This commit is contained in:
@@ -442,11 +442,9 @@ export const getUsage = (input: { model: Provider.Model; usage: LanguageModelUsa
|
||||
}
|
||||
}
|
||||
|
||||
export class BusyError extends Error {
|
||||
constructor(public readonly sessionID: string) {
|
||||
super(`Session ${sessionID} is busy`)
|
||||
}
|
||||
}
|
||||
export class BusyError extends Schema.TaggedErrorClass<BusyError>()("SessionBusyError", {
|
||||
sessionID: SessionID,
|
||||
}) {}
|
||||
|
||||
export type NotFound = NotFoundError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user