mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 05:01:17 +00:00
- Add LocationService to manage LocationSource per user - Add UserNotFoundError for generic user-related errors - updateUserLocation throws if source not initialized Co-authored-by: Ona <no-reply@ona.com>
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}`)
|
|
}
|
|
}
|