Spaces:
Runtime error
Runtime error
Download src/common/errors/engine-not-supported.error.ts from MuhammadNoman7600/qwen_2.5_model: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/engine-not-supported.error.ts
- Command line
-
hf download hf://spaces/MuhammadNoman7600/qwen_2.5_model/src/common/errors/engine-not-supported.error.ts
-
curl -L -o engine-not-supported.error.ts https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/common/errors/engine-not-supported.error.ts
723 Bytes
| import { NotImplementedException } from '@nestjs/common'; | |
| /** | |
| * Thrown by an engine adapter when a method is part of the {@link IWhatsAppEngine} | |
| * contract but the active engine cannot implement it (e.g. the Baileys engine has no | |
| * self-maintained store, so history/contacts/groups are unavailable in its minimal slice). | |
| * | |
| * Extends NestJS `NotImplementedException` so it maps to **HTTP 501** through NestJS's | |
| * built-in exception handler — no custom global filter required. Mirrors how | |
| * {@link EngineNotReadyError} maps to 409. | |
| */ | |
| export class EngineNotSupportedError extends NotImplementedException { | |
| constructor(method: string) { | |
| super(`Operation not supported by the active engine: ${method}`); | |
| } | |
| } | |