mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 03:32:22 +08:00
Update index.ts
This commit is contained in:
parent
489a643391
commit
f743f2b922
|
@ -204,7 +204,7 @@ export interface ErrorResponse {
|
||||||
* Custom error class for Firecrawl.
|
* Custom error class for Firecrawl.
|
||||||
* Extends the built-in Error class to include a status code.
|
* Extends the built-in Error class to include a status code.
|
||||||
*/
|
*/
|
||||||
class FirecrawlError extends Error {
|
export class FirecrawlError extends Error {
|
||||||
statusCode: number;
|
statusCode: number;
|
||||||
constructor(message: string, statusCode: number) {
|
constructor(message: string, statusCode: number) {
|
||||||
super(message);
|
super(message);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user