Spaces:
Runtime error
Runtime error
Download src/common/errors/group-not-found.error.ts from MuhammadNoman7600/qwen_2.5_model: direct link, hf CLI and curl.
- Browser
- Download file 668 Bytes
-
https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/group-not-found.error.ts
- Command line
-
hf download hf://spaces/MuhammadNoman7600/qwen_2.5_model/src/common/errors/group-not-found.error.ts
-
curl -L -o group-not-found.error.ts https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/group-not-found.error.ts
668 Bytes
| import { NotFoundException } from '@nestjs/common'; | |
| /** | |
| * Thrown by the engine layer when a group id does not resolve to a group chat — the id is unknown | |
| * (whatsapp-web.js `getChatById` resolves undefined rather than throwing) or it addresses a 1:1 | |
| * chat instead of a group. Same message shape as GroupService.getGroupInfo's 404. | |
| * | |
| * Extends NestJS `NotFoundException` so it maps to **HTTP 404** through the built-in exception | |
| * handler — no custom global filter required. Mirrors {@link MessageNotFoundError}. | |
| */ | |
| export class GroupNotFoundError extends NotFoundException { | |
| constructor(groupId: string) { | |
| super(`Group ${groupId} not found`); | |
| } | |
| } | |