Fire-crawl / src /lib /custom-error.ts
Echo-AI-official's picture
Upload 280 files
0e759d2 verified
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);
}
}