Spaces:
Sleeping
Sleeping
Download backend/src/utils/AppError.ts from moustafa7/protofolio: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/moustafa7/protofolio/resolve/main/backend/src/utils/AppError.ts
- Command line
-
hf download hf://spaces/moustafa7/protofolio/backend/src/utils/AppError.ts
-
curl -L -o AppError.ts https://huggingface.co/spaces/moustafa7/protofolio/resolve/main/backend/src/utils/AppError.ts
298 Bytes
| export class AppError extends Error { | |
| public statusCode: number; | |
| public isOperational: boolean; | |
| constructor(message: string, statusCode: number) { | |
| super(message); | |
| this.statusCode = statusCode; | |
| this.isOperational = true; | |
| Error.captureStackTrace(this, this.constructor); | |
| } | |
| } | |