Spaces:
Sleeping
Sleeping
Download backend/src/utils/appError.ts from cuteepeiarchu/PathFinders: direct link, hf CLI and curl.
- Browser
- Download file 200 Bytes
-
https://huggingface.co/spaces/cuteepeiarchu/PathFinders/resolve/main/backend/src/utils/appError.ts
- Command line
-
hf download hf://spaces/cuteepeiarchu/PathFinders/backend/src/utils/appError.ts
-
curl -L -o appError.ts https://huggingface.co/spaces/cuteepeiarchu/PathFinders/resolve/main/backend/src/utils/appError.ts
200 Bytes
| export class AppError extends Error { | |
| statusCode: number; | |
| constructor(message: string, statusCode = 400) { | |
| super(message); | |
| this.name = "AppError"; | |
| this.statusCode = statusCode; | |
| } | |
| } | |