mirror of
https://github.com/kennethnym/freya
synced 2026-06-20 08:31:17 +01:00
12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
|
|
export class ConversationNotFoundError extends Error {
|
||
|
|
readonly conversationId: string
|
||
|
|
readonly userId: string
|
||
|
|
|
||
|
|
constructor(conversationId: string, userId: string) {
|
||
|
|
super(`Conversation "${conversationId}" not found for user "${userId}"`)
|
||
|
|
this.name = "ConversationNotFoundError"
|
||
|
|
this.conversationId = conversationId
|
||
|
|
this.userId = userId
|
||
|
|
}
|
||
|
|
}
|