Download mock-app/core/errors.js from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/mock-app/core/errors.js
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/mock-app/core/errors.js
-
curl -L -o errors.js https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/mock-app/core/errors.js
330 Bytes
| ; | |
| // Shared error type for the mock shell and every module pack (HTTP status + machine code + human message). | |
| class AppError extends Error { | |
| constructor(status, code, message) { super(message); this.status = status; this.code = code; } | |
| } | |
| module.exports = { AppError, err: (s, c, m) => new AppError(s, c, m) }; | |