mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 13:11:17 +00:00
9 lines
214 B
TypeScript
9 lines
214 B
TypeScript
|
|
export class UserNotFoundError extends Error {
|
||
|
|
constructor(
|
||
|
|
public readonly userId: string,
|
||
|
|
message?: string,
|
||
|
|
) {
|
||
|
|
super(message ? `${message}: user not found: ${userId}` : `User not found: ${userId}`)
|
||
|
|
}
|
||
|
|
}
|