-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.d.ts
33 lines (33 loc) · 1.08 KB
/
errors.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Errors of `NonRetryableError` type will never be retried by the crawler.
*/
export declare class NonRetryableError extends Error {
}
/**
* Errors of `CriticalError` type will shut down the whole crawler.
* Error handlers catching CriticalError should avoid logging it, as it will be logged by Node.js itself at the end
*/
export declare class CriticalError extends NonRetryableError {
}
/**
* @ignore
*/
export declare class MissingRouteError extends CriticalError {
}
/**
* Errors of `RetryRequestError` type will always be retried by the crawler.
*
* *This error overrides the `maxRequestRetries` option, i.e. the request can be retried indefinitely until it succeeds.*
*/
export declare class RetryRequestError extends Error {
constructor(message?: string);
}
/**
* Errors of `SessionError` type will trigger a session rotation.
*
* This error doesn't respect the `maxRequestRetries` option and has a separate limit of `maxSessionRotations`.
*/
export declare class SessionError extends RetryRequestError {
constructor(message?: string);
}
//# sourceMappingURL=errors.d.ts.map