CrawlingoError · Node.js
Base class for failures reported by the Crawlingo engine.
In this guide
Purpose and lifecycle
CrawlingoError is exported from the Node package. Specialized errors inherit CrawlingoError; the base inherits JavaScript Error.
Construct with new ErrorClass(message, options?). Inherited properties include name, message, stack, cause, code and optional diagnostic context. SDK boundaries convert structured native failures to this hierarchy.
Page returns HTTP statuses, including exhausted 429/500 responses. A missing selector can return an empty collection. DatasetJob records individual failures in reports/error shards. These conditions do not automatically throw every exported error class.
Definition and availability
Source snapshot: 1.0.0-alpha.3. Package export. Declared in source; this is not a runtime test result.
Signatures and source locations are generated from the SDK wrappers. Clean snapshots link to the recorded commit. Modified snapshots link to main, which may differ; file hashes identify the local inputs.
export class CrawlingoError extends ErrorConstruct and catch
import { CrawlingoError } from 'crawlingo';
const error = new CrawlingoError('Operation failed');
console.log(error instanceof CrawlingoError, error.message, error.code);Members
| Member | Kind | Return / value type | Source status |
|---|---|---|---|
| defaultCode | static property | string | Present in source |
| code | property | string | Present in source |
| url | property | string | undefined | Present in source |
| stage | property | string | undefined | Present in source |
| recoverable | property | boolean | Present in source |
| suggestion | property | string | undefined | Present in source |
| seconds | property | number | undefined | Present in source |
| host | property | string | undefined | Present in source |
| constructor | method | CrawlingoError | Present in source |
defaultCode
Default code inherited by instances of this error class.
Returns / value: string.
static readonly defaultCode: string = 'GENERIC_FAILURE';code
Stable Node error category code.
Returns / value: string.
readonly code: string;url
Source/final URL according to the operation; check redirects and provenance needs.
Returns / value: string | undefined.
readonly url?: string;stage
Operation stage supplied by the native bridge.
Returns / value: string | undefined.
readonly stage?: string;recoverable
Advisory indication, not a successful-retry guarantee.
Returns / value: boolean.
readonly recoverable: boolean;suggestion
Human-readable recovery guidance.
Returns / value: string | undefined.
readonly suggestion?: string;seconds
Timeout duration when supplied.
Returns / value: number | undefined.
readonly seconds?: number;host
Host context when supplied.
Returns / value: string | undefined.
readonly host?: string;constructor()
Create an error with a message and optional cause/diagnostic context. Construction does not perform an operation or retry it.
Returns / value: CrawlingoError.
constructor(message?: string, options?: CrawlingoErrorOptions): CrawlingoError| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| message | string | Default: 'Crawlingo operation failed' | Human-readable error description; do not parse it as a stable error code. |
| options | CrawlingoErrorOptions | Default: {} | Optional settings object. Its inline signature lists the accepted keys and types. |
Errors and operational limits
See the consuming API for validation and failure behavior. Types and enum declarations do not perform network requests by themselves.
Source availability, package publication and runtime validation are separate facts. These pages describe the source snapshot, not a claim that all platforms or every API path have passed production acceptance.