Error handling
NodeApiError
new NodeApiError(node: INode, errorResponse: JsonObject, options?: NodeApiErrorOptions)Common usage patterns
try {
const response = await this.helpers.httpRequestWithAuthentication.call(
this,
credentialType,
options
);
return response;
} catch (error) {
throw new NodeApiError(this.getNode(), error as JsonObject);
}NodeOperationError
Common usage patterns
Last updated
Was this helpful?