Files
aris/apps/aris-backend/src/lib/error.ts

9 lines
214 B
TypeScript
Raw Normal View History

export class UserNotFoundError extends Error {
constructor(
public readonly userId: string,
message?: string,
) {
super(message ? `${message}: user not found: ${userId}` : `User not found: ${userId}`)
}
}