Spaces:
Sleeping
Sleeping
Download utils/appError.js from Mahmoud7456/MultiUsersSalesSystem: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/Mahmoud7456/MultiUsersSalesSystem/resolve/main/utils/appError.js
- Command line
-
hf download hf://spaces/Mahmoud7456/MultiUsersSalesSystem/utils/appError.js
-
curl -L -o appError.js https://huggingface.co/spaces/Mahmoud7456/MultiUsersSalesSystem/resolve/main/utils/appError.js
280 Bytes
| /** | |
| * Custom error class for API responses | |
| */ | |
| export class AppError extends Error { | |
| constructor(message, statusCode = 500) { | |
| super(message); | |
| this.statusCode = statusCode; | |
| Error.captureStackTrace(this, this.constructor); | |
| } | |
| } | |
| export default AppError; | |