Spaces:
Paused
Paused
Download src/lib/custom-error.ts from Echo-AI-official/Fire-crawl: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/Echo-AI-official/Fire-crawl/resolve/main/src/lib/custom-error.ts
- Command line
-
hf download hf://spaces/Echo-AI-official/Fire-crawl/src/lib/custom-error.ts
-
curl -L -o custom-error.ts https://huggingface.co/spaces/Echo-AI-official/Fire-crawl/resolve/main/src/lib/custom-error.ts
462 Bytes
| export class CustomError extends Error { | |
| statusCode: number; | |
| status: string; | |
| message: string; | |
| dataIngestionJob: any; | |
| constructor( | |
| statusCode: number, | |
| status: string, | |
| message: string = "", | |
| dataIngestionJob?: any, | |
| ) { | |
| super(message); | |
| this.statusCode = statusCode; | |
| this.status = status; | |
| this.message = message; | |
| this.dataIngestionJob = dataIngestionJob; | |
| Object.setPrototypeOf(this, CustomError.prototype); | |
| } | |
| } | |