first commit
This commit is contained in:
27
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.d.ts
generated
vendored
Normal file
27
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { ApplicationError, type ReportingOptions } from '@n8n/errors';
|
||||
import type { Functionality, IDataObject, JsonObject } from '../../interfaces';
|
||||
interface ExecutionBaseErrorOptions extends ReportingOptions {
|
||||
cause?: Error;
|
||||
errorResponse?: JsonObject;
|
||||
}
|
||||
export declare abstract class ExecutionBaseError extends ApplicationError {
|
||||
description: string | null | undefined;
|
||||
cause?: Error;
|
||||
errorResponse?: JsonObject;
|
||||
timestamp: number;
|
||||
context: IDataObject;
|
||||
lineNumber: number | undefined;
|
||||
functionality: Functionality;
|
||||
constructor(message: string, options?: ExecutionBaseErrorOptions);
|
||||
toJSON?(): {
|
||||
message: string;
|
||||
lineNumber: number | undefined;
|
||||
timestamp: number;
|
||||
name: string;
|
||||
description: string | null | undefined;
|
||||
context: IDataObject;
|
||||
cause: Error | undefined;
|
||||
};
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=execution-base.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-base.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE/E,UAAU,yBAA0B,SAAQ,gBAAgB;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED,8BAAsB,kBAAmB,SAAQ,gBAAgB;IAChE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAE9B,KAAK,CAAC,EAAE,KAAK,CAAC;IAEvB,aAAa,CAAC,EAAE,UAAU,CAAC;IAE3B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,WAAW,CAAM;IAE1B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,aAAa,EAAE,aAAa,CAAa;gBAE7B,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,yBAA8B;IAgBpE,MAAM,CAAC;;;;;;;;;CAWP"}
|
||||
36
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.js
generated
vendored
Normal file
36
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
export class ExecutionBaseError extends ApplicationError {
|
||||
description;
|
||||
cause;
|
||||
errorResponse;
|
||||
timestamp;
|
||||
context = {};
|
||||
lineNumber;
|
||||
functionality = 'regular';
|
||||
constructor(message, options = {}) {
|
||||
super(message, options);
|
||||
this.name = this.constructor.name;
|
||||
this.timestamp = Date.now();
|
||||
const { cause, errorResponse } = options;
|
||||
if (cause instanceof ExecutionBaseError) {
|
||||
this.context = cause.context;
|
||||
}
|
||||
else if (cause && !(cause instanceof Error)) {
|
||||
this.cause = cause;
|
||||
}
|
||||
if (errorResponse)
|
||||
this.errorResponse = errorResponse;
|
||||
}
|
||||
toJSON() {
|
||||
return {
|
||||
message: this.message,
|
||||
lineNumber: this.lineNumber,
|
||||
timestamp: this.timestamp,
|
||||
name: this.name,
|
||||
description: this.description,
|
||||
context: this.context,
|
||||
cause: this.cause,
|
||||
};
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=execution-base.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-base.error.js","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,aAAa,CAAC;AAStE,MAAM,OAAgB,kBAAmB,SAAQ,gBAAgB;IAChE,WAAW,CAA4B;IAE9B,KAAK,CAAS;IAEvB,aAAa,CAAc;IAE3B,SAAS,CAAS;IAElB,OAAO,GAAgB,EAAE,CAAC;IAE1B,UAAU,CAAqB;IAE/B,aAAa,GAAkB,SAAS,CAAC;IAEzC,YAAY,OAAe,EAAE,UAAqC,EAAE;QACnE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAExB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAE5B,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;QACzC,IAAI,KAAK,YAAY,kBAAkB,EAAE,CAAC;YACzC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,CAAC;aAAM,IAAI,KAAK,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE,CAAC;YAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACpB,CAAC;QAED,IAAI,aAAa;YAAE,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvD,CAAC;IAED,MAAM;QACL,OAAO;YACN,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC;IACH,CAAC;CACD"}
|
||||
48
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.d.ts
generated
vendored
Normal file
48
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import { ExecutionBaseError } from './execution-base.error';
|
||||
import type { INode, JsonObject } from '../../interfaces';
|
||||
/**
|
||||
* Base class for specific NodeError-types, with functionality for finding
|
||||
* a value recursively inside an error object.
|
||||
*/
|
||||
export declare abstract class NodeError extends ExecutionBaseError {
|
||||
readonly node: INode;
|
||||
messages: string[];
|
||||
constructor(node: INode, error: Error | JsonObject);
|
||||
/**
|
||||
* Finds property through exploration based on potential keys and traversal keys.
|
||||
* Depth-first approach.
|
||||
*
|
||||
* This method iterates over `potentialKeys` and, if the value at the key is a
|
||||
* truthy value, the type of the value is checked:
|
||||
* (1) if a string or number, the value is returned as a string; or
|
||||
* (2) if an array,
|
||||
* its string or number elements are collected as a long string,
|
||||
* its object elements are traversed recursively (restart this function
|
||||
* with each object as a starting point), or
|
||||
* (3) if it is an object, it traverses the object and nested ones recursively
|
||||
* based on the `potentialKeys` and returns a string if found.
|
||||
*
|
||||
* If nothing found via `potentialKeys` this method iterates over `traversalKeys` and
|
||||
* if the value at the key is a traversable object, it restarts with the object as the
|
||||
* new starting point (recursion).
|
||||
* If nothing found for any of the `traversalKeys`, exploration continues with remaining
|
||||
* `traversalKeys`.
|
||||
*
|
||||
* Otherwise, if all the paths have been exhausted and no value is eligible, `null` is
|
||||
* returned.
|
||||
*
|
||||
*/
|
||||
protected findProperty(jsonError: JsonObject, potentialKeys: string[], traversalKeys?: string[]): string | null;
|
||||
/**
|
||||
* Preserve the original error message before setting the new one
|
||||
*/
|
||||
protected addToMessages(message: string): void;
|
||||
/**
|
||||
* Set descriptive error message if code is provided or if message contains any of the common errors,
|
||||
* update description to include original message plus the description
|
||||
*/
|
||||
protected setDescriptiveErrorMessage(message: string, messages: string[], code?: string | null, messageMapping?: {
|
||||
[key: string]: string;
|
||||
}): [string, string[]];
|
||||
}
|
||||
//# sourceMappingURL=node.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/abstract/node.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAe,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA+BvE;;;GAGG;AACH,8BAAsB,SAAU,SAAQ,kBAAkB;IAIxD,QAAQ,CAAC,IAAI,EAAE,KAAK;IAHrB,QAAQ,EAAE,MAAM,EAAE,CAAM;gBAGd,IAAI,EAAE,KAAK,EACpB,KAAK,EAAE,KAAK,GAAG,UAAU;IAY1B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,SAAS,CAAC,YAAY,CACrB,SAAS,EAAE,UAAU,EACrB,aAAa,EAAE,MAAM,EAAE,EACvB,aAAa,GAAE,MAAM,EAAO,GAC1B,MAAM,GAAG,IAAI;IAqDhB;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAM9C;;;OAGG;IACH,SAAS,CAAC,0BAA0B,CACnC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAAE,EAClB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,EACpB,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACxC,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;CAkCrB"}
|
||||
163
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.js
generated
vendored
Normal file
163
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.js
generated
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
import { ExecutionBaseError } from './execution-base.error';
|
||||
import { isTraversableObject, jsonParse } from '../../utils';
|
||||
/**
|
||||
* Descriptive messages for common errors.
|
||||
*/
|
||||
const COMMON_ERRORS = {
|
||||
// nodeJS errors
|
||||
ECONNREFUSED: 'The service refused the connection - perhaps it is offline',
|
||||
ECONNRESET: 'The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later.',
|
||||
ENOTFOUND: 'The connection cannot be established, this usually occurs due to an incorrect host (domain) value',
|
||||
ETIMEDOUT: "The connection timed out, consider setting the 'Retry on Fail' option in the node settings",
|
||||
ERRADDRINUSE: 'The port is already occupied by some other application, if possible change the port or kill the application that is using it',
|
||||
EADDRNOTAVAIL: 'The address is not available, ensure that you have the right IP address',
|
||||
ECONNABORTED: 'The connection was aborted, perhaps the server is offline',
|
||||
EHOSTUNREACH: 'The host is unreachable, perhaps the server is offline',
|
||||
EAI_AGAIN: 'The DNS server returned an error, perhaps the server is offline',
|
||||
ENOENT: 'The file or directory does not exist',
|
||||
EISDIR: 'The file path was expected but the given path is a directory',
|
||||
ENOTDIR: 'The directory path was expected but the given path is a file',
|
||||
EACCES: 'Forbidden by access permissions, make sure you have the right permissions',
|
||||
EEXIST: 'The file or directory already exists',
|
||||
EPERM: 'Operation not permitted, make sure you have the right permissions',
|
||||
// other errors
|
||||
GETADDRINFO: 'The server closed the connection unexpectedly',
|
||||
};
|
||||
/**
|
||||
* Base class for specific NodeError-types, with functionality for finding
|
||||
* a value recursively inside an error object.
|
||||
*/
|
||||
export class NodeError extends ExecutionBaseError {
|
||||
node;
|
||||
messages = [];
|
||||
constructor(node, error) {
|
||||
const isError = error instanceof Error;
|
||||
const message = isError ? error.message : '';
|
||||
const options = isError ? { cause: error } : { errorResponse: error };
|
||||
super(message, options);
|
||||
this.node = node;
|
||||
if (error instanceof NodeError) {
|
||||
this.tags.reWrapped = true;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Finds property through exploration based on potential keys and traversal keys.
|
||||
* Depth-first approach.
|
||||
*
|
||||
* This method iterates over `potentialKeys` and, if the value at the key is a
|
||||
* truthy value, the type of the value is checked:
|
||||
* (1) if a string or number, the value is returned as a string; or
|
||||
* (2) if an array,
|
||||
* its string or number elements are collected as a long string,
|
||||
* its object elements are traversed recursively (restart this function
|
||||
* with each object as a starting point), or
|
||||
* (3) if it is an object, it traverses the object and nested ones recursively
|
||||
* based on the `potentialKeys` and returns a string if found.
|
||||
*
|
||||
* If nothing found via `potentialKeys` this method iterates over `traversalKeys` and
|
||||
* if the value at the key is a traversable object, it restarts with the object as the
|
||||
* new starting point (recursion).
|
||||
* If nothing found for any of the `traversalKeys`, exploration continues with remaining
|
||||
* `traversalKeys`.
|
||||
*
|
||||
* Otherwise, if all the paths have been exhausted and no value is eligible, `null` is
|
||||
* returned.
|
||||
*
|
||||
*/
|
||||
findProperty(jsonError, potentialKeys, traversalKeys = []) {
|
||||
for (const key of potentialKeys) {
|
||||
let value = jsonError[key];
|
||||
if (value) {
|
||||
if (typeof value === 'string') {
|
||||
try {
|
||||
value = jsonParse(value);
|
||||
}
|
||||
catch (error) {
|
||||
return value;
|
||||
}
|
||||
if (typeof value === 'string')
|
||||
return value;
|
||||
}
|
||||
if (typeof value === 'number')
|
||||
return value.toString();
|
||||
if (Array.isArray(value)) {
|
||||
const resolvedErrors = value
|
||||
.map((jsonError) => {
|
||||
if (typeof jsonError === 'string')
|
||||
return jsonError;
|
||||
if (typeof jsonError === 'number')
|
||||
return jsonError.toString();
|
||||
if (isTraversableObject(jsonError)) {
|
||||
return this.findProperty(jsonError, potentialKeys);
|
||||
}
|
||||
return null;
|
||||
})
|
||||
.filter((errorValue) => errorValue !== null);
|
||||
if (resolvedErrors.length === 0) {
|
||||
return null;
|
||||
}
|
||||
return resolvedErrors.join(' | ');
|
||||
}
|
||||
if (isTraversableObject(value)) {
|
||||
const property = this.findProperty(value, potentialKeys);
|
||||
if (property) {
|
||||
return property;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const key of traversalKeys) {
|
||||
const value = jsonError[key];
|
||||
if (isTraversableObject(value)) {
|
||||
const property = this.findProperty(value, potentialKeys, traversalKeys);
|
||||
if (property) {
|
||||
return property;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* Preserve the original error message before setting the new one
|
||||
*/
|
||||
addToMessages(message) {
|
||||
if (message && !this.messages.includes(message)) {
|
||||
this.messages.push(message);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Set descriptive error message if code is provided or if message contains any of the common errors,
|
||||
* update description to include original message plus the description
|
||||
*/
|
||||
setDescriptiveErrorMessage(message, messages, code, messageMapping) {
|
||||
let newMessage = message;
|
||||
if (messageMapping) {
|
||||
for (const [mapKey, mapMessage] of Object.entries(messageMapping)) {
|
||||
if ((message || '').toUpperCase().includes(mapKey.toUpperCase())) {
|
||||
newMessage = mapMessage;
|
||||
messages.push(message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (newMessage !== message) {
|
||||
return [newMessage, messages];
|
||||
}
|
||||
}
|
||||
// if code is provided and it is in the list of common errors set the message and return early
|
||||
if (code && typeof code === 'string' && COMMON_ERRORS[code.toUpperCase()]) {
|
||||
newMessage = COMMON_ERRORS[code];
|
||||
messages.push(message);
|
||||
return [newMessage, messages];
|
||||
}
|
||||
// check if message contains any of the common errors and set the message and description
|
||||
for (const [errorCode, errorDescriptiveMessage] of Object.entries(COMMON_ERRORS)) {
|
||||
if ((message || '').toUpperCase().includes(errorCode.toUpperCase())) {
|
||||
newMessage = errorDescriptiveMessage;
|
||||
messages.push(message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return [newMessage, messages];
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=node.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node.error.js","sourceRoot":"","sources":["../../../../src/errors/abstract/node.error.ts"],"names":[],"mappings":"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"}
|
||||
26
node_modules/n8n-workflow/dist/esm/errors/base/base.error.d.ts
generated
vendored
Normal file
26
node_modules/n8n-workflow/dist/esm/errors/base/base.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { Event } from '@sentry/node';
|
||||
import type { ErrorTags, ErrorLevel, ReportingOptions } from '@n8n/errors';
|
||||
export type BaseErrorOptions = {
|
||||
description?: string | undefined | null;
|
||||
} & ErrorOptions & ReportingOptions;
|
||||
/**
|
||||
* Base class for all errors
|
||||
*/
|
||||
export declare abstract class BaseError extends Error {
|
||||
/**
|
||||
* Error level. Defines which level the error should be logged/reported
|
||||
* @default 'error'
|
||||
*/
|
||||
level: ErrorLevel;
|
||||
/**
|
||||
* Whether the error should be reported to Sentry.
|
||||
* @default true
|
||||
*/
|
||||
readonly shouldReport: boolean;
|
||||
readonly description: string | null | undefined;
|
||||
readonly tags: ErrorTags;
|
||||
readonly extra?: Event['extra'];
|
||||
readonly packageName?: string;
|
||||
constructor(message: string, { level, description, shouldReport, tags, extra, ...rest }?: BaseErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=base.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/base.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/base.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"base.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/base.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAAE,GAAG,YAAY,GACxF,gBAAgB,CAAC;AAClB;;GAEG;AACH,8BAAsB,SAAU,SAAQ,KAAK;IAC5C;;;OAGG;IACH,KAAK,EAAE,UAAU,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAE/B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEhD,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAEzB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEhC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;gBAG7B,OAAO,EAAE,MAAM,EACf,EACC,KAAe,EACf,WAAW,EACX,YAAY,EACZ,IAAS,EACT,KAAK,EACL,GAAG,IAAI,EACP,GAAE,gBAAqB;CAiBzB"}
|
||||
36
node_modules/n8n-workflow/dist/esm/errors/base/base.error.js
generated
vendored
Normal file
36
node_modules/n8n-workflow/dist/esm/errors/base/base.error.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import callsites from 'callsites';
|
||||
/**
|
||||
* Base class for all errors
|
||||
*/
|
||||
export class BaseError extends Error {
|
||||
/**
|
||||
* Error level. Defines which level the error should be logged/reported
|
||||
* @default 'error'
|
||||
*/
|
||||
level;
|
||||
/**
|
||||
* Whether the error should be reported to Sentry.
|
||||
* @default true
|
||||
*/
|
||||
shouldReport;
|
||||
description;
|
||||
tags;
|
||||
extra;
|
||||
packageName;
|
||||
constructor(message, { level = 'error', description, shouldReport, tags = {}, extra, ...rest } = {}) {
|
||||
super(message, rest);
|
||||
this.level = level;
|
||||
this.shouldReport = shouldReport ?? (level === 'error' || level === 'fatal');
|
||||
this.description = description;
|
||||
this.tags = tags;
|
||||
this.extra = extra;
|
||||
try {
|
||||
const filePath = callsites()[2].getFileName() ?? '';
|
||||
const match = /packages\/([^\/]+)\//.exec(filePath)?.[1];
|
||||
if (match)
|
||||
this.tags.packageName = match;
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=base.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/base.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/base.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"base.error.js","sourceRoot":"","sources":["../../../../src/errors/base/base.error.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,WAAW,CAAC;AAMlC;;GAEG;AACH,MAAM,OAAgB,SAAU,SAAQ,KAAK;IAC5C;;;OAGG;IACH,KAAK,CAAa;IAElB;;;OAGG;IACM,YAAY,CAAU;IAEtB,WAAW,CAA4B;IAEvC,IAAI,CAAY;IAEhB,KAAK,CAAkB;IAEvB,WAAW,CAAU;IAE9B,YACC,OAAe,EACf,EACC,KAAK,GAAG,OAAO,EACf,WAAW,EACX,YAAY,EACZ,IAAI,GAAG,EAAE,EACT,KAAK,EACL,GAAG,IAAI,KACc,EAAE;QAExB,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAErB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,OAAO,CAAC,CAAC;QAC7E,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC;YACJ,MAAM,QAAQ,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC;YACpD,MAAM,KAAK,GAAG,sBAAsB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAEzD,IAAI,KAAK;gBAAE,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC1C,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACX,CAAC;CACD"}
|
||||
16
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.d.ts
generated
vendored
Normal file
16
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { BaseErrorOptions } from './base.error';
|
||||
import { BaseError } from './base.error';
|
||||
export type OperationalErrorOptions = Omit<BaseErrorOptions, 'level'> & {
|
||||
level?: 'info' | 'warning' | 'error';
|
||||
};
|
||||
/**
|
||||
* Error that indicates a transient issue, like a network request failing,
|
||||
* a database query timing out, etc. These are expected to happen, are
|
||||
* transient by nature and should be handled gracefully.
|
||||
*
|
||||
* Default level: warning
|
||||
*/
|
||||
export declare class OperationalError extends BaseError {
|
||||
constructor(message: string, opts?: OperationalErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=operational.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"operational.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/operational.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;gBAClC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,uBAA4B;CAK/D"}
|
||||
15
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.js
generated
vendored
Normal file
15
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { BaseError } from './base.error';
|
||||
/**
|
||||
* Error that indicates a transient issue, like a network request failing,
|
||||
* a database query timing out, etc. These are expected to happen, are
|
||||
* transient by nature and should be handled gracefully.
|
||||
*
|
||||
* Default level: warning
|
||||
*/
|
||||
export class OperationalError extends BaseError {
|
||||
constructor(message, opts = {}) {
|
||||
opts.level = opts.level ?? 'warning';
|
||||
super(message, opts);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=operational.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/operational.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"operational.error.js","sourceRoot":"","sources":["../../../../src/errors/base/operational.error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC;;;;;;GAMG;AACH,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC9C,YAAY,OAAe,EAAE,OAAgC,EAAE;QAC9D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC;QAErC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACtB,CAAC;CACD"}
|
||||
16
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.d.ts
generated
vendored
Normal file
16
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { BaseErrorOptions } from './base.error';
|
||||
import { BaseError } from './base.error';
|
||||
export type UnexpectedErrorOptions = Omit<BaseErrorOptions, 'level'> & {
|
||||
level?: 'error' | 'fatal';
|
||||
};
|
||||
/**
|
||||
* Error that indicates something is wrong in the code: logic mistakes,
|
||||
* unhandled cases, assertions that fail. These are not recoverable and
|
||||
* should be brought to developers' attention.
|
||||
*
|
||||
* Default level: error
|
||||
*/
|
||||
export declare class UnexpectedError extends BaseError {
|
||||
constructor(message: string, opts?: UnexpectedErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=unexpected.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"unexpected.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/unexpected.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IACtE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBACjC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,sBAA2B;CAK9D"}
|
||||
15
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.js
generated
vendored
Normal file
15
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { BaseError } from './base.error';
|
||||
/**
|
||||
* Error that indicates something is wrong in the code: logic mistakes,
|
||||
* unhandled cases, assertions that fail. These are not recoverable and
|
||||
* should be brought to developers' attention.
|
||||
*
|
||||
* Default level: error
|
||||
*/
|
||||
export class UnexpectedError extends BaseError {
|
||||
constructor(message, opts = {}) {
|
||||
opts.level = opts.level ?? 'error';
|
||||
super(message, opts);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=unexpected.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"unexpected.error.js","sourceRoot":"","sources":["../../../../src/errors/base/unexpected.error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC;;;;;;GAMG;AACH,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC7C,YAAY,OAAe,EAAE,OAA+B,EAAE;QAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC;QAEnC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACtB,CAAC;CACD"}
|
||||
18
node_modules/n8n-workflow/dist/esm/errors/base/user.error.d.ts
generated
vendored
Normal file
18
node_modules/n8n-workflow/dist/esm/errors/base/user.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { BaseErrorOptions } from './base.error';
|
||||
import { BaseError } from './base.error';
|
||||
export type UserErrorOptions = Omit<BaseErrorOptions, 'level'> & {
|
||||
level?: 'info' | 'warning';
|
||||
description?: string | null | undefined;
|
||||
};
|
||||
/**
|
||||
* Error that indicates the user performed an action that caused an error.
|
||||
* E.g. provided invalid input, tried to access a resource they’re not
|
||||
* authorized to, or violates a business rule.
|
||||
*
|
||||
* Default level: info
|
||||
*/
|
||||
export declare class UserError extends BaseError {
|
||||
readonly description: string | null | undefined;
|
||||
constructor(message: string, opts?: UserErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=user.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/user.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/user.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/user.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,SAAU,SAAQ,SAAS;IACvC,SAAiB,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;gBAE5C,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,gBAAqB;CAKxD"}
|
||||
15
node_modules/n8n-workflow/dist/esm/errors/base/user.error.js
generated
vendored
Normal file
15
node_modules/n8n-workflow/dist/esm/errors/base/user.error.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { BaseError } from './base.error';
|
||||
/**
|
||||
* Error that indicates the user performed an action that caused an error.
|
||||
* E.g. provided invalid input, tried to access a resource they’re not
|
||||
* authorized to, or violates a business rule.
|
||||
*
|
||||
* Default level: info
|
||||
*/
|
||||
export class UserError extends BaseError {
|
||||
constructor(message, opts = {}) {
|
||||
opts.level = opts.level ?? 'info';
|
||||
super(message, opts);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=user.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/base/user.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/base/user.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user.error.js","sourceRoot":"","sources":["../../../../src/errors/base/user.error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC;;;;;;GAMG;AACH,MAAM,OAAO,SAAU,SAAQ,SAAS;IAGvC,YAAY,OAAe,EAAE,OAAyB,EAAE;QACvD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC;QAElC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACtB,CAAC;CACD"}
|
||||
4
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.d.ts
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { SubworkflowOperationError } from './subworkflow-operation.error';
|
||||
export declare class CliWorkflowOperationError extends SubworkflowOperationError {
|
||||
}
|
||||
//# sourceMappingURL=cli-subworkflow-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli-subworkflow-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/cli-subworkflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,qBAAa,yBAA0B,SAAQ,yBAAyB;CAAG"}
|
||||
4
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.js
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { SubworkflowOperationError } from './subworkflow-operation.error';
|
||||
export class CliWorkflowOperationError extends SubworkflowOperationError {
|
||||
}
|
||||
//# sourceMappingURL=cli-subworkflow-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli-subworkflow-operation.error.js","sourceRoot":"","sources":["../../../src/errors/cli-subworkflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,MAAM,OAAO,yBAA0B,SAAQ,yBAAyB;CAAG"}
|
||||
9
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.d.ts
generated
vendored
Normal file
9
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
export type DbConnectionTimeoutErrorOpts = {
|
||||
configuredTimeoutInMs: number;
|
||||
cause: Error;
|
||||
};
|
||||
export declare class DbConnectionTimeoutError extends ApplicationError {
|
||||
constructor(opts: DbConnectionTimeoutErrorOpts);
|
||||
}
|
||||
//# sourceMappingURL=db-connection-timeout-error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"db-connection-timeout-error.d.ts","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IAC1C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,qBAAa,wBAAyB,SAAQ,gBAAgB;gBACjD,IAAI,EAAE,4BAA4B;CAK9C"}
|
||||
9
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.js
generated
vendored
Normal file
9
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
export class DbConnectionTimeoutError extends ApplicationError {
|
||||
constructor(opts) {
|
||||
const numberFormat = Intl.NumberFormat();
|
||||
const errorMessage = `Could not establish database connection within the configured timeout of ${numberFormat.format(opts.configuredTimeoutInMs)} ms. Please ensure the database is configured correctly and the server is reachable. You can increase the timeout by setting the 'DB_POSTGRESDB_CONNECTION_TIMEOUT' environment variable.`;
|
||||
super(errorMessage, { cause: opts.cause });
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=db-connection-timeout-error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"db-connection-timeout-error.js","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAO/C,MAAM,OAAO,wBAAyB,SAAQ,gBAAgB;IAC7D,YAAY,IAAkC;QAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACzC,MAAM,YAAY,GAAG,4EAA4E,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,2LAA2L,CAAC;QAC5U,KAAK,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IAC5C,CAAC;CACD"}
|
||||
3
node_modules/n8n-workflow/dist/esm/errors/ensure-error.d.ts
generated
vendored
Normal file
3
node_modules/n8n-workflow/dist/esm/errors/ensure-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/** Ensures `error` is an `Error */
|
||||
export declare function ensureError(error: unknown): Error;
|
||||
//# sourceMappingURL=ensure-error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/ensure-error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/ensure-error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ensure-error.d.ts","sourceRoot":"","sources":["../../../src/errors/ensure-error.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAOjD"}
|
||||
10
node_modules/n8n-workflow/dist/esm/errors/ensure-error.js
generated
vendored
Normal file
10
node_modules/n8n-workflow/dist/esm/errors/ensure-error.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/** Ensures `error` is an `Error */
|
||||
export function ensureError(error) {
|
||||
return error instanceof Error
|
||||
? error
|
||||
: new Error('Error that was not an instance of Error was thrown', {
|
||||
// We should never throw anything except something that derives from Error
|
||||
cause: error,
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=ensure-error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/ensure-error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/ensure-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ensure-error.js","sourceRoot":"","sources":["../../../src/errors/ensure-error.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,MAAM,UAAU,WAAW,CAAC,KAAc;IACzC,OAAO,KAAK,YAAY,KAAK;QAC5B,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,IAAI,KAAK,CAAC,oDAAoD,EAAE;YAChE,0EAA0E;YAC1E,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;AACN,CAAC"}
|
||||
14
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.d.ts
generated
vendored
Normal file
14
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export declare abstract class ExecutionCancelledError extends ExecutionBaseError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
export declare class ManualExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
export declare class TimeoutExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
export declare class SystemShutdownExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
//# sourceMappingURL=execution-cancelled.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-cancelled.error.d.ts","sourceRoot":"","sources":["../../../src/errors/execution-cancelled.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,8BAAsB,uBAAwB,SAAQ,kBAAkB;gBAE3D,WAAW,EAAE,MAAM;CAM/B;AAED,qBAAa,6BAA8B,SAAQ,uBAAuB;gBAC7D,WAAW,EAAE,MAAM;CAI/B;AAED,qBAAa,8BAA+B,SAAQ,uBAAuB;gBAC9D,WAAW,EAAE,MAAM;CAI/B;AAED,qBAAa,qCAAsC,SAAQ,uBAAuB;gBACrE,WAAW,EAAE,MAAM;CAI/B"}
|
||||
29
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.js
generated
vendored
Normal file
29
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export class ExecutionCancelledError extends ExecutionBaseError {
|
||||
// NOTE: prefer one of the more specific
|
||||
constructor(executionId) {
|
||||
super('The execution was cancelled', {
|
||||
level: 'warning',
|
||||
extra: { executionId },
|
||||
});
|
||||
}
|
||||
}
|
||||
export class ManualExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId) {
|
||||
super(executionId);
|
||||
this.message = 'The execution was cancelled manually';
|
||||
}
|
||||
}
|
||||
export class TimeoutExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId) {
|
||||
super(executionId);
|
||||
this.message = 'The execution was cancelled because it timed out';
|
||||
}
|
||||
}
|
||||
export class SystemShutdownExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId) {
|
||||
super(executionId);
|
||||
this.message = 'The execution was cancelled because the system is shutting down';
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=execution-cancelled.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-cancelled.error.js","sourceRoot":"","sources":["../../../src/errors/execution-cancelled.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,OAAgB,uBAAwB,SAAQ,kBAAkB;IACvE,wCAAwC;IACxC,YAAY,WAAmB;QAC9B,KAAK,CAAC,6BAA6B,EAAE;YACpC,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,EAAE,WAAW,EAAE;SACtB,CAAC,CAAC;IACJ,CAAC;CACD;AAED,MAAM,OAAO,6BAA8B,SAAQ,uBAAuB;IACzE,YAAY,WAAmB;QAC9B,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,sCAAsC,CAAC;IACvD,CAAC;CACD;AAED,MAAM,OAAO,8BAA+B,SAAQ,uBAAuB;IAC1E,YAAY,WAAmB;QAC9B,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,kDAAkD,CAAC;IACnE,CAAC;CACD;AAED,MAAM,OAAO,qCAAsC,SAAQ,uBAAuB;IACjF,YAAY,WAAmB;QAC9B,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,iEAAiE,CAAC;IAClF,CAAC;CACD"}
|
||||
4
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.d.ts
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ExpressionError } from './expression.error';
|
||||
export declare class ExpressionExtensionError extends ExpressionError {
|
||||
}
|
||||
//# sourceMappingURL=expression-extension.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression-extension.error.d.ts","sourceRoot":"","sources":["../../../src/errors/expression-extension.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,wBAAyB,SAAQ,eAAe;CAAG"}
|
||||
4
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.js
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ExpressionError } from './expression.error';
|
||||
export class ExpressionExtensionError extends ExpressionError {
|
||||
}
|
||||
//# sourceMappingURL=expression-extension.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression-extension.error.js","sourceRoot":"","sources":["../../../src/errors/expression-extension.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,OAAO,wBAAyB,SAAQ,eAAe;CAAG"}
|
||||
22
node_modules/n8n-workflow/dist/esm/errors/expression.error.d.ts
generated
vendored
Normal file
22
node_modules/n8n-workflow/dist/esm/errors/expression.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export interface ExpressionErrorOptions {
|
||||
cause?: Error;
|
||||
causeDetailed?: string;
|
||||
description?: string;
|
||||
descriptionKey?: string;
|
||||
descriptionTemplate?: string;
|
||||
functionality?: 'pairedItem';
|
||||
itemIndex?: number;
|
||||
messageTemplate?: string;
|
||||
nodeCause?: string;
|
||||
parameter?: string;
|
||||
runIndex?: number;
|
||||
type?: 'no_execution_data' | 'no_node_execution_data' | 'no_input_connection' | 'internal' | 'paired_item_invalid_info' | 'paired_item_no_info' | 'paired_item_multiple_matches' | 'paired_item_no_connection' | 'paired_item_intermediate_nodes';
|
||||
}
|
||||
/**
|
||||
* Class for instantiating an expression error
|
||||
*/
|
||||
export declare class ExpressionError extends ExecutionBaseError {
|
||||
constructor(message: string, options?: ExpressionErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=expression.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/expression.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/expression.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression.error.d.ts","sourceRoot":"","sources":["../../../src/errors/expression.error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EACF,mBAAmB,GACnB,wBAAwB,GACxB,qBAAqB,GACrB,UAAU,GACV,0BAA0B,GAC1B,qBAAqB,GACrB,8BAA8B,GAC9B,2BAA2B,GAC3B,gCAAgC,CAAC;CACpC;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,kBAAkB;gBAC1C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB;CA+B7D"}
|
||||
34
node_modules/n8n-workflow/dist/esm/errors/expression.error.js
generated
vendored
Normal file
34
node_modules/n8n-workflow/dist/esm/errors/expression.error.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
/**
|
||||
* Class for instantiating an expression error
|
||||
*/
|
||||
export class ExpressionError extends ExecutionBaseError {
|
||||
constructor(message, options) {
|
||||
super(message, { cause: options?.cause, level: 'warning' });
|
||||
if (options?.description !== undefined) {
|
||||
this.description = options.description;
|
||||
}
|
||||
const allowedKeys = [
|
||||
'causeDetailed',
|
||||
'descriptionTemplate',
|
||||
'descriptionKey',
|
||||
'itemIndex',
|
||||
'messageTemplate',
|
||||
'nodeCause',
|
||||
'parameter',
|
||||
'runIndex',
|
||||
'type',
|
||||
];
|
||||
if (options !== undefined) {
|
||||
if (options.functionality !== undefined) {
|
||||
this.functionality = options.functionality;
|
||||
}
|
||||
Object.keys(options).forEach((key) => {
|
||||
if (allowedKeys.includes(key)) {
|
||||
this.context[key] = options[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=expression.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/expression.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/expression.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression.error.js","sourceRoot":"","sources":["../../../src/errors/expression.error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AA0BrE;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,kBAAkB;IACtD,YAAY,OAAe,EAAE,OAAgC;QAC5D,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAE5D,IAAI,OAAO,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC;YACxC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACxC,CAAC;QAED,MAAM,WAAW,GAAG;YACnB,eAAe;YACf,qBAAqB;YACrB,gBAAgB;YAChB,WAAW;YACX,iBAAiB;YACjB,WAAW;YACX,WAAW;YACX,UAAU;YACV,MAAM;SACN,CAAC;QAEF,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC3B,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;gBACzC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;YAC5C,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,OAAsB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnD,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAI,OAAuB,CAAC,GAAG,CAAC,CAAC;gBACnD,CAAC;YACF,CAAC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD"}
|
||||
24
node_modules/n8n-workflow/dist/esm/errors/index.d.ts
generated
vendored
Normal file
24
node_modules/n8n-workflow/dist/esm/errors/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export { BaseError, type BaseErrorOptions } from './base/base.error';
|
||||
export { OperationalError, type OperationalErrorOptions } from './base/operational.error';
|
||||
export { UnexpectedError, type UnexpectedErrorOptions } from './base/unexpected.error';
|
||||
export { UserError, type UserErrorOptions } from './base/user.error';
|
||||
export { ApplicationError } from '@n8n/errors';
|
||||
export { ExpressionError } from './expression.error';
|
||||
export { ExecutionCancelledError, ManualExecutionCancelledError, SystemShutdownExecutionCancelledError, TimeoutExecutionCancelledError, } from './execution-cancelled.error';
|
||||
export { NodeApiError } from './node-api.error';
|
||||
export { NodeOperationError } from './node-operation.error';
|
||||
export { WorkflowConfigurationError } from './workflow-configuration.error';
|
||||
export { NodeSslError } from './node-ssl.error';
|
||||
export { WebhookPathTakenError } from './webhook-taken.error';
|
||||
export { WorkflowActivationError } from './workflow-activation.error';
|
||||
export { WorkflowDeactivationError } from './workflow-deactivation.error';
|
||||
export { WorkflowOperationError } from './workflow-operation.error';
|
||||
export { SubworkflowOperationError } from './subworkflow-operation.error';
|
||||
export { CliWorkflowOperationError } from './cli-subworkflow-operation.error';
|
||||
export { TriggerCloseError } from './trigger-close.error';
|
||||
export { NodeError } from './abstract/node.error';
|
||||
export { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export { ExpressionExtensionError } from './expression-extension.error';
|
||||
export { DbConnectionTimeoutError } from './db-connection-timeout-error';
|
||||
export { ensureError } from './ensure-error';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/index.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACN,uBAAuB,EACvB,6BAA6B,EAC7B,qCAAqC,EACrC,8BAA8B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
||||
24
node_modules/n8n-workflow/dist/esm/errors/index.js
generated
vendored
Normal file
24
node_modules/n8n-workflow/dist/esm/errors/index.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export { BaseError } from './base/base.error';
|
||||
export { OperationalError } from './base/operational.error';
|
||||
export { UnexpectedError } from './base/unexpected.error';
|
||||
export { UserError } from './base/user.error';
|
||||
export { ApplicationError } from '@n8n/errors';
|
||||
export { ExpressionError } from './expression.error';
|
||||
export { ExecutionCancelledError, ManualExecutionCancelledError, SystemShutdownExecutionCancelledError, TimeoutExecutionCancelledError, } from './execution-cancelled.error';
|
||||
export { NodeApiError } from './node-api.error';
|
||||
export { NodeOperationError } from './node-operation.error';
|
||||
export { WorkflowConfigurationError } from './workflow-configuration.error';
|
||||
export { NodeSslError } from './node-ssl.error';
|
||||
export { WebhookPathTakenError } from './webhook-taken.error';
|
||||
export { WorkflowActivationError } from './workflow-activation.error';
|
||||
export { WorkflowDeactivationError } from './workflow-deactivation.error';
|
||||
export { WorkflowOperationError } from './workflow-operation.error';
|
||||
export { SubworkflowOperationError } from './subworkflow-operation.error';
|
||||
export { CliWorkflowOperationError } from './cli-subworkflow-operation.error';
|
||||
export { TriggerCloseError } from './trigger-close.error';
|
||||
export { NodeError } from './abstract/node.error';
|
||||
export { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export { ExpressionExtensionError } from './expression-extension.error';
|
||||
export { DbConnectionTimeoutError } from './db-connection-timeout-error';
|
||||
export { ensureError } from './ensure-error';
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/index.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAgC,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,eAAe,EAA+B,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAyB,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACN,uBAAuB,EACvB,6BAA6B,EAC7B,qCAAqC,EACrC,8BAA8B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
||||
39
node_modules/n8n-workflow/dist/esm/errors/node-api.error.d.ts
generated
vendored
Normal file
39
node_modules/n8n-workflow/dist/esm/errors/node-api.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { NodeError } from './abstract/node.error';
|
||||
import type { ErrorLevel } from '@n8n/errors';
|
||||
import type { INode, JsonObject, Functionality, RelatedExecution } from '../interfaces';
|
||||
export interface NodeOperationErrorOptions {
|
||||
message?: string;
|
||||
description?: string;
|
||||
runIndex?: number;
|
||||
itemIndex?: number;
|
||||
level?: ErrorLevel;
|
||||
messageMapping?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
functionality?: Functionality;
|
||||
type?: string;
|
||||
metadata?: {
|
||||
subExecution?: RelatedExecution;
|
||||
parentExecution?: RelatedExecution;
|
||||
};
|
||||
}
|
||||
interface NodeApiErrorOptions extends NodeOperationErrorOptions {
|
||||
message?: string;
|
||||
httpCode?: string;
|
||||
parseXml?: boolean;
|
||||
}
|
||||
/**
|
||||
* Class for instantiating an error in an API response, e.g. a 404 Not Found response,
|
||||
* with an HTTP error code, an error message and a description.
|
||||
*/
|
||||
export declare class NodeApiError extends NodeError {
|
||||
httpCode: string | null;
|
||||
constructor(node: INode, errorResponse: JsonObject, { message, description, httpCode, parseXml, runIndex, itemIndex, level, functionality, messageMapping, }?: NodeApiErrorOptions);
|
||||
private setDescriptionFromXml;
|
||||
/**
|
||||
* Set the error's message based on the HTTP status code.
|
||||
*/
|
||||
private setDefaultStatusCodeMessage;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=node-api.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/node-api.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/node-api.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-api.error.d.ts","sourceRoot":"","sources":["../../../src/errors/node-api.error.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO9C,OAAO,KAAK,EACX,KAAK,EACL,UAAU,EAGV,aAAa,EACb,gBAAgB,EAChB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,yBAAyB;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC3C,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE;QACV,YAAY,CAAC,EAAE,gBAAgB,CAAC;QAChC,eAAe,CAAC,EAAE,gBAAgB,CAAC;KACnC,CAAC;CACF;AAED,UAAU,mBAAoB,SAAQ,yBAAyB;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAyED;;;GAGG;AACH,qBAAa,YAAa,SAAQ,SAAS;IAC1C,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAI9B,IAAI,EAAE,KAAK,EACX,aAAa,EAAE,UAAU,EACzB,EACC,OAAO,EACP,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,EACL,aAAa,EACb,cAAc,GACd,GAAE,mBAAwB;IA4I5B,OAAO,CAAC,qBAAqB;IAa7B;;OAEG;IACH,OAAO,CAAC,2BAA2B;CAmDnC"}
|
||||
243
node_modules/n8n-workflow/dist/esm/errors/node-api.error.js
generated
vendored
Normal file
243
node_modules/n8n-workflow/dist/esm/errors/node-api.error.js
generated
vendored
Normal file
@@ -0,0 +1,243 @@
|
||||
import { parseString } from 'xml2js';
|
||||
import { NodeError } from './abstract/node.error';
|
||||
import { NO_OP_NODE_TYPE, UNKNOWN_ERROR_DESCRIPTION, UNKNOWN_ERROR_MESSAGE, UNKNOWN_ERROR_MESSAGE_CRED, } from '../constants';
|
||||
import { removeCircularRefs } from '../utils';
|
||||
/**
|
||||
* Top-level properties where an error message can be found in an API response.
|
||||
* order is important, precedence is from top to bottom
|
||||
*/
|
||||
const POSSIBLE_ERROR_MESSAGE_KEYS = [
|
||||
'cause',
|
||||
'error',
|
||||
'message',
|
||||
'Message',
|
||||
'msg',
|
||||
'messages',
|
||||
'description',
|
||||
'reason',
|
||||
'detail',
|
||||
'details',
|
||||
'errors',
|
||||
'errorMessage',
|
||||
'errorMessages',
|
||||
'ErrorMessage',
|
||||
'error_message',
|
||||
'_error_message',
|
||||
'errorDescription',
|
||||
'error_description',
|
||||
'error_summary',
|
||||
'error_info',
|
||||
'title',
|
||||
'text',
|
||||
'field',
|
||||
'err',
|
||||
'type',
|
||||
];
|
||||
/**
|
||||
* Properties where a nested object can be found in an API response.
|
||||
*/
|
||||
const POSSIBLE_NESTED_ERROR_OBJECT_KEYS = ['Error', 'error', 'err', 'response', 'body', 'data'];
|
||||
/**
|
||||
* Top-level properties where an HTTP error code can be found in an API response.
|
||||
*/
|
||||
const POSSIBLE_ERROR_STATUS_KEYS = [
|
||||
'statusCode',
|
||||
'status',
|
||||
'code',
|
||||
'status_code',
|
||||
'errorCode',
|
||||
'error_code',
|
||||
];
|
||||
/**
|
||||
* Descriptive messages for common HTTP status codes
|
||||
* this is used by NodeApiError class
|
||||
*/
|
||||
const STATUS_CODE_MESSAGES = {
|
||||
'4XX': 'Your request is invalid or could not be processed by the service',
|
||||
'400': 'Bad request - please check your parameters',
|
||||
'401': 'Authorization failed - please check your credentials',
|
||||
'402': 'Payment required - perhaps check your payment details?',
|
||||
'403': 'Forbidden - perhaps check your credentials?',
|
||||
'404': 'The resource you are requesting could not be found',
|
||||
'405': 'Method not allowed - please check you are using the right HTTP method',
|
||||
'429': 'The service is receiving too many requests from you',
|
||||
'5XX': 'The service failed to process your request',
|
||||
'500': 'The service was not able to process your request',
|
||||
'502': 'Bad gateway - the service failed to handle your request',
|
||||
'503': 'Service unavailable - try again later or consider setting this node to retry automatically (in the node settings)',
|
||||
'504': 'Gateway timed out - perhaps try again later?',
|
||||
};
|
||||
/**
|
||||
* Class for instantiating an error in an API response, e.g. a 404 Not Found response,
|
||||
* with an HTTP error code, an error message and a description.
|
||||
*/
|
||||
export class NodeApiError extends NodeError {
|
||||
httpCode = null;
|
||||
// eslint-disable-next-line complexity
|
||||
constructor(node, errorResponse, { message, description, httpCode, parseXml, runIndex, itemIndex, level, functionality, messageMapping, } = {}) {
|
||||
if (errorResponse instanceof NodeApiError) {
|
||||
return errorResponse;
|
||||
}
|
||||
super(node, errorResponse);
|
||||
this.addToMessages(errorResponse.message);
|
||||
if (!httpCode &&
|
||||
errorResponse instanceof Error &&
|
||||
errorResponse.constructor?.name === 'AxiosError') {
|
||||
httpCode = errorResponse.response?.status?.toString();
|
||||
}
|
||||
// only for request library error
|
||||
if (errorResponse.error) {
|
||||
removeCircularRefs(errorResponse.error);
|
||||
}
|
||||
// if not description provided, try to find it in the error object
|
||||
if (!description &&
|
||||
(errorResponse.description || errorResponse?.reason?.description)) {
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
this.description = (errorResponse.description ||
|
||||
errorResponse?.reason?.description);
|
||||
}
|
||||
// if not message provided, try to find it in the error object or set description as message
|
||||
if (!message &&
|
||||
(errorResponse.message || errorResponse?.reason?.message || description)) {
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
this.message = (errorResponse.message ||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
errorResponse?.reason?.message ||
|
||||
description);
|
||||
}
|
||||
// if it's an error generated by axios
|
||||
// look for descriptions in the response object
|
||||
if (errorResponse.reason) {
|
||||
const reason = errorResponse.reason;
|
||||
if (reason.isAxiosError && reason.response) {
|
||||
errorResponse = reason.response;
|
||||
}
|
||||
}
|
||||
// set http code of this error
|
||||
if (httpCode) {
|
||||
this.httpCode = httpCode;
|
||||
}
|
||||
else if (errorResponse.httpCode) {
|
||||
this.httpCode = errorResponse.httpCode;
|
||||
}
|
||||
else {
|
||||
this.httpCode =
|
||||
this.findProperty(errorResponse, POSSIBLE_ERROR_STATUS_KEYS, POSSIBLE_NESTED_ERROR_OBJECT_KEYS) ?? null;
|
||||
}
|
||||
this.level = level ?? 'warning';
|
||||
if (errorResponse?.response &&
|
||||
typeof errorResponse?.response === 'object' &&
|
||||
!Array.isArray(errorResponse.response) &&
|
||||
errorResponse.response.data &&
|
||||
typeof errorResponse.response.data === 'object' &&
|
||||
!Array.isArray(errorResponse.response.data)) {
|
||||
const data = errorResponse.response.data;
|
||||
if (data.message) {
|
||||
description = data.message;
|
||||
}
|
||||
else if (data.error && (data.error || {}).message) {
|
||||
description = data.error.message;
|
||||
}
|
||||
this.context.data = data;
|
||||
}
|
||||
// set description of this error
|
||||
if (description) {
|
||||
this.description = description;
|
||||
}
|
||||
if (!this.description) {
|
||||
if (parseXml) {
|
||||
this.setDescriptionFromXml(errorResponse.error);
|
||||
}
|
||||
else {
|
||||
this.description = this.findProperty(errorResponse, POSSIBLE_ERROR_MESSAGE_KEYS, POSSIBLE_NESTED_ERROR_OBJECT_KEYS);
|
||||
}
|
||||
}
|
||||
// set message if provided
|
||||
// set default message based on http code
|
||||
// or use raw error message
|
||||
if (message) {
|
||||
this.message = message;
|
||||
}
|
||||
else {
|
||||
this.setDefaultStatusCodeMessage();
|
||||
}
|
||||
// if message and description are the same, unset redundant description
|
||||
if (this.message === this.description) {
|
||||
this.description = undefined;
|
||||
}
|
||||
// if message contain common error code set descriptive message and update description
|
||||
[this.message, this.messages] = this.setDescriptiveErrorMessage(this.message, this.messages,
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
this.httpCode ||
|
||||
errorResponse?.code ||
|
||||
errorResponse?.reason?.code ||
|
||||
undefined, messageMapping);
|
||||
if (functionality !== undefined)
|
||||
this.functionality = functionality;
|
||||
if (runIndex !== undefined)
|
||||
this.context.runIndex = runIndex;
|
||||
if (itemIndex !== undefined)
|
||||
this.context.itemIndex = itemIndex;
|
||||
}
|
||||
setDescriptionFromXml(xml) {
|
||||
parseString(xml, { explicitArray: false }, (_, result) => {
|
||||
if (!result)
|
||||
return;
|
||||
const topLevelKey = Object.keys(result)[0];
|
||||
this.description = this.findProperty(result[topLevelKey], POSSIBLE_ERROR_MESSAGE_KEYS, POSSIBLE_NESTED_ERROR_OBJECT_KEYS);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Set the error's message based on the HTTP status code.
|
||||
*/
|
||||
setDefaultStatusCodeMessage() {
|
||||
// Set generic error message for 502 Bad Gateway
|
||||
if (!this.httpCode && this.message && this.message.toLowerCase().includes('bad gateway')) {
|
||||
this.httpCode = '502';
|
||||
}
|
||||
if (!this.httpCode) {
|
||||
this.httpCode = null;
|
||||
if (!this.message) {
|
||||
if (this.description) {
|
||||
this.message = this.description;
|
||||
this.description = undefined;
|
||||
}
|
||||
else {
|
||||
this.message = UNKNOWN_ERROR_MESSAGE;
|
||||
this.description = UNKNOWN_ERROR_DESCRIPTION;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (STATUS_CODE_MESSAGES[this.httpCode]) {
|
||||
this.addToMessages(this.message);
|
||||
this.message = STATUS_CODE_MESSAGES[this.httpCode];
|
||||
return;
|
||||
}
|
||||
switch (this.httpCode.charAt(0)) {
|
||||
case '4':
|
||||
this.addToMessages(this.message);
|
||||
this.message = STATUS_CODE_MESSAGES['4XX'];
|
||||
break;
|
||||
case '5':
|
||||
this.addToMessages(this.message);
|
||||
this.message = STATUS_CODE_MESSAGES['5XX'];
|
||||
break;
|
||||
default:
|
||||
if (!this.message) {
|
||||
if (this.description) {
|
||||
this.message = this.description;
|
||||
this.description = undefined;
|
||||
}
|
||||
else {
|
||||
this.message = UNKNOWN_ERROR_MESSAGE;
|
||||
this.description = UNKNOWN_ERROR_DESCRIPTION;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.node.type === NO_OP_NODE_TYPE && this.message === UNKNOWN_ERROR_MESSAGE) {
|
||||
this.message = `${UNKNOWN_ERROR_MESSAGE_CRED} - ${this.httpCode}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=node-api.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/node-api.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/node-api.error.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
11
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.d.ts
generated
vendored
Normal file
11
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { NodeError } from './abstract/node.error';
|
||||
import type { NodeOperationErrorOptions } from './node-api.error';
|
||||
import type { INode, JsonObject } from '../interfaces';
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. an invalid credentials error.
|
||||
*/
|
||||
export declare class NodeOperationError extends NodeError {
|
||||
type: string | undefined;
|
||||
constructor(node: INode, error: Error | string | JsonObject, options?: NodeOperationErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=node-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/node-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEvD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,SAAS;IAChD,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGxB,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,EAClC,OAAO,GAAE,yBAA8B;CAwCxC"}
|
||||
39
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.js
generated
vendored
Normal file
39
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { NodeError } from './abstract/node.error';
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. an invalid credentials error.
|
||||
*/
|
||||
export class NodeOperationError extends NodeError {
|
||||
type;
|
||||
constructor(node, error, options = {}) {
|
||||
if (error instanceof NodeOperationError) {
|
||||
return error;
|
||||
}
|
||||
if (typeof error === 'string') {
|
||||
error = new ApplicationError(error, { level: options.level ?? 'warning' });
|
||||
}
|
||||
super(node, error);
|
||||
if (error instanceof NodeError && error?.messages?.length) {
|
||||
error.messages.forEach((message) => this.addToMessages(message));
|
||||
}
|
||||
if (options.message)
|
||||
this.message = options.message;
|
||||
this.level = options.level ?? 'warning';
|
||||
if (options.functionality)
|
||||
this.functionality = options.functionality;
|
||||
if (options.type)
|
||||
this.type = options.type;
|
||||
if (options.description)
|
||||
this.description = options.description;
|
||||
else if ('description' in error && typeof error.description === 'string')
|
||||
this.description = error.description;
|
||||
this.context.runIndex = options.runIndex;
|
||||
this.context.itemIndex = options.itemIndex;
|
||||
this.context.metadata = options.metadata;
|
||||
if (this.message === this.description) {
|
||||
this.description = undefined;
|
||||
}
|
||||
[this.message, this.messages] = this.setDescriptiveErrorMessage(this.message, this.messages, undefined, options.messageMapping);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=node-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/node-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-operation.error.js","sourceRoot":"","sources":["../../../src/errors/node-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI/C;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAChD,IAAI,CAAqB;IAEzB,YACC,IAAW,EACX,KAAkC,EAClC,UAAqC,EAAE;QAEvC,IAAI,KAAK,YAAY,kBAAkB,EAAE,CAAC;YACzC,OAAO,KAAK,CAAC;QACd,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC/B,KAAK,GAAG,IAAI,gBAAgB,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,SAAS,EAAE,CAAC,CAAC;QAC5E,CAAC;QAED,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAEnB,IAAI,KAAK,YAAY,SAAS,IAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;YAC3D,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,OAAO,CAAC,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QACpD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,SAAS,CAAC;QACxC,IAAI,OAAO,CAAC,aAAa;YAAE,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QACtE,IAAI,OAAO,CAAC,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAE3C,IAAI,OAAO,CAAC,WAAW;YAAE,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;aAC3D,IAAI,aAAa,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ;YACvE,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QAEtC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QAC3C,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QAEzC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;YACvC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC9B,CAAC;QAED,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,0BAA0B,CAC9D,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,QAAQ,EACb,SAAS,EACT,OAAO,CAAC,cAAc,CACtB,CAAC;IACH,CAAC;CACD"}
|
||||
5
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.d.ts
generated
vendored
Normal file
5
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export declare class NodeSslError extends ExecutionBaseError {
|
||||
constructor(cause: Error);
|
||||
}
|
||||
//# sourceMappingURL=node-ssl.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-ssl.error.d.ts","sourceRoot":"","sources":["../../../src/errors/node-ssl.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,qBAAa,YAAa,SAAQ,kBAAkB;gBACvC,KAAK,EAAE,KAAK;CAGxB"}
|
||||
7
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.js
generated
vendored
Normal file
7
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export class NodeSslError extends ExecutionBaseError {
|
||||
constructor(cause) {
|
||||
super("SSL Issue: consider using the 'Ignore SSL issues' option", { cause });
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=node-ssl.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-ssl.error.js","sourceRoot":"","sources":["../../../src/errors/node-ssl.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,OAAO,YAAa,SAAQ,kBAAkB;IACnD,YAAY,KAAY;QACvB,KAAK,CAAC,0DAA0D,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9E,CAAC;CACD"}
|
||||
7
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.d.ts
generated
vendored
Normal file
7
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { WorkflowOperationError } from './workflow-operation.error';
|
||||
export declare class SubworkflowOperationError extends WorkflowOperationError {
|
||||
description: string;
|
||||
cause: Error;
|
||||
constructor(message: string, description: string);
|
||||
}
|
||||
//# sourceMappingURL=subworkflow-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subworkflow-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/subworkflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,yBAA0B,SAAQ,sBAAsB;IAC3D,WAAW,SAAM;IAEjB,KAAK,EAAE,KAAK,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;CAWhD"}
|
||||
16
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.js
generated
vendored
Normal file
16
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { WorkflowOperationError } from './workflow-operation.error';
|
||||
export class SubworkflowOperationError extends WorkflowOperationError {
|
||||
description = '';
|
||||
cause;
|
||||
constructor(message, description) {
|
||||
super(message);
|
||||
this.name = this.constructor.name;
|
||||
this.description = description;
|
||||
this.cause = {
|
||||
name: this.name,
|
||||
message,
|
||||
stack: this.stack,
|
||||
};
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=subworkflow-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subworkflow-operation.error.js","sourceRoot":"","sources":["../../../src/errors/subworkflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,OAAO,yBAA0B,SAAQ,sBAAsB;IAC3D,WAAW,GAAG,EAAE,CAAC;IAEjB,KAAK,CAAQ;IAEtB,YAAY,OAAe,EAAE,WAAmB;QAC/C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,KAAK,GAAG;YACZ,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO;YACP,KAAK,EAAE,IAAI,CAAC,KAAe;SAC3B,CAAC;IACH,CAAC;CACD"}
|
||||
11
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.d.ts
generated
vendored
Normal file
11
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ApplicationError, type ErrorLevel } from '@n8n/errors';
|
||||
import type { INode } from '../interfaces';
|
||||
interface TriggerCloseErrorOptions extends ErrorOptions {
|
||||
level: ErrorLevel;
|
||||
}
|
||||
export declare class TriggerCloseError extends ApplicationError {
|
||||
readonly node: INode;
|
||||
constructor(node: INode, { cause, level }: TriggerCloseErrorOptions);
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=trigger-close.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"trigger-close.error.d.ts","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,UAAU,wBAAyB,SAAQ,YAAY;IACtD,KAAK,EAAE,UAAU,CAAC;CAClB;AAED,qBAAa,iBAAkB,SAAQ,gBAAgB;IAErD,QAAQ,CAAC,IAAI,EAAE,KAAK;gBAAX,IAAI,EAAE,KAAK,EACpB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,wBAAwB;CAK3C"}
|
||||
10
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.js
generated
vendored
Normal file
10
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
export class TriggerCloseError extends ApplicationError {
|
||||
node;
|
||||
constructor(node, { cause, level }) {
|
||||
super('Trigger Close Failed', { cause, extra: { nodeName: node.name } });
|
||||
this.node = node;
|
||||
this.level = level;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=trigger-close.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"trigger-close.error.js","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,aAAa,CAAC;AAOhE,MAAM,OAAO,iBAAkB,SAAQ,gBAAgB;IAE5C;IADV,YACU,IAAW,EACpB,EAAE,KAAK,EAAE,KAAK,EAA4B;QAE1C,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAHhE,SAAI,GAAJ,IAAI,CAAO;QAIpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;CACD"}
|
||||
5
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.d.ts
generated
vendored
Normal file
5
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { WorkflowActivationError } from './workflow-activation.error';
|
||||
export declare class WebhookPathTakenError extends WorkflowActivationError {
|
||||
constructor(nodeName: string, cause?: Error);
|
||||
}
|
||||
//# sourceMappingURL=webhook-taken.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"webhook-taken.error.d.ts","sourceRoot":"","sources":["../../../src/errors/webhook-taken.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,qBAAa,qBAAsB,SAAQ,uBAAuB;gBACrD,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAM3C"}
|
||||
7
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.js
generated
vendored
Normal file
7
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { WorkflowActivationError } from './workflow-activation.error';
|
||||
export class WebhookPathTakenError extends WorkflowActivationError {
|
||||
constructor(nodeName, cause) {
|
||||
super(`The URL path that the "${nodeName}" node uses is already taken. Please change it to something else.`, { level: 'warning', cause });
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=webhook-taken.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"webhook-taken.error.js","sourceRoot":"","sources":["../../../src/errors/webhook-taken.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,MAAM,OAAO,qBAAsB,SAAQ,uBAAuB;IACjE,YAAY,QAAgB,EAAE,KAAa;QAC1C,KAAK,CACJ,0BAA0B,QAAQ,mEAAmE,EACrG,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAC3B,CAAC;IACH,CAAC;CACD"}
|
||||
20
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.d.ts
generated
vendored
Normal file
20
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
import type { ApplicationError } from '@n8n/errors';
|
||||
import type { INode } from '../interfaces';
|
||||
interface WorkflowActivationErrorOptions {
|
||||
cause?: Error;
|
||||
node?: INode;
|
||||
level?: ApplicationError['level'];
|
||||
workflowId?: string;
|
||||
}
|
||||
/**
|
||||
* Class for instantiating an workflow activation error
|
||||
*/
|
||||
export declare class WorkflowActivationError extends ExecutionBaseError {
|
||||
node: INode | undefined;
|
||||
workflowId: string | undefined;
|
||||
constructor(message: string, { cause, node, level, workflowId }?: WorkflowActivationErrorOptions);
|
||||
private setLevel;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=workflow-activation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-activation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-activation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,UAAU,8BAA8B;IACvC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,kBAAkB;IAC9D,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC;IAExB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG9B,OAAO,EAAE,MAAM,EACf,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,GAAE,8BAAmC;IAgBxE,OAAO,CAAC,QAAQ;CAqBhB"}
|
||||
40
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.js
generated
vendored
Normal file
40
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
/**
|
||||
* Class for instantiating an workflow activation error
|
||||
*/
|
||||
export class WorkflowActivationError extends ExecutionBaseError {
|
||||
node;
|
||||
workflowId;
|
||||
constructor(message, { cause, node, level, workflowId } = {}) {
|
||||
let error = cause;
|
||||
if (cause instanceof ExecutionBaseError) {
|
||||
error = new Error(cause.message);
|
||||
error.constructor = cause.constructor;
|
||||
error.name = cause.name;
|
||||
error.stack = cause.stack;
|
||||
}
|
||||
super(message, { cause: error });
|
||||
this.node = node;
|
||||
this.workflowId = workflowId;
|
||||
this.message = message;
|
||||
this.setLevel(level);
|
||||
}
|
||||
setLevel(level) {
|
||||
if (level) {
|
||||
this.level = level;
|
||||
return;
|
||||
}
|
||||
if ([
|
||||
'etimedout', // Node.js
|
||||
'econnrefused', // Node.js
|
||||
'eauth', // OAuth
|
||||
'temporary authentication failure', // IMAP server
|
||||
'invalid credentials',
|
||||
].some((str) => this.message.toLowerCase().includes(str))) {
|
||||
this.level = 'warning';
|
||||
return;
|
||||
}
|
||||
this.level = 'error';
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=workflow-activation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-activation.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-activation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAWrE;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,kBAAkB;IAC9D,IAAI,CAAoB;IAExB,UAAU,CAAqB;IAE/B,YACC,OAAe,EACf,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,KAAqC,EAAE;QAEvE,IAAI,KAAK,GAAG,KAAc,CAAC;QAC3B,IAAI,KAAK,YAAY,kBAAkB,EAAE,CAAC;YACzC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACjC,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;YACtC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;YACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QAC3B,CAAC;QACD,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAEO,QAAQ,CAAC,KAAiC;QACjD,IAAI,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,OAAO;QACR,CAAC;QAED,IACC;YACC,WAAW,EAAE,UAAU;YACvB,cAAc,EAAE,UAAU;YAC1B,OAAO,EAAE,QAAQ;YACjB,kCAAkC,EAAE,cAAc;YAClD,qBAAqB;SACrB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EACxD,CAAC;YACF,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;YACvB,OAAO;QACR,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;IACtB,CAAC;CACD"}
|
||||
7
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.d.ts
generated
vendored
Normal file
7
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { NodeOperationError } from './node-operation.error';
|
||||
/**
|
||||
* A type of NodeOperationError caused by a configuration problem somewhere in workflow.
|
||||
*/
|
||||
export declare class WorkflowConfigurationError extends NodeOperationError {
|
||||
}
|
||||
//# sourceMappingURL=workflow-configuration.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-configuration.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-configuration.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,kBAAkB;CAAG"}
|
||||
7
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.js
generated
vendored
Normal file
7
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { NodeOperationError } from './node-operation.error';
|
||||
/**
|
||||
* A type of NodeOperationError caused by a configuration problem somewhere in workflow.
|
||||
*/
|
||||
export class WorkflowConfigurationError extends NodeOperationError {
|
||||
}
|
||||
//# sourceMappingURL=workflow-configuration.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-configuration.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-configuration.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;CAAG"}
|
||||
4
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.d.ts
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { WorkflowActivationError } from './workflow-activation.error';
|
||||
export declare class WorkflowDeactivationError extends WorkflowActivationError {
|
||||
}
|
||||
//# sourceMappingURL=workflow-deactivation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-deactivation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-deactivation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,qBAAa,yBAA0B,SAAQ,uBAAuB;CAAG"}
|
||||
4
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.js
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { WorkflowActivationError } from './workflow-activation.error';
|
||||
export class WorkflowDeactivationError extends WorkflowActivationError {
|
||||
}
|
||||
//# sourceMappingURL=workflow-deactivation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-deactivation.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-deactivation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,MAAM,OAAO,yBAA0B,SAAQ,uBAAuB;CAAG"}
|
||||
11
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.d.ts
generated
vendored
Normal file
11
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { INode } from '../interfaces';
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. a timeout error.
|
||||
*/
|
||||
export declare class WorkflowOperationError extends ExecutionBaseError {
|
||||
node: INode | undefined;
|
||||
timestamp: number;
|
||||
constructor(message: string, node?: INode, description?: string);
|
||||
}
|
||||
//# sourceMappingURL=workflow-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,kBAAkB;IAC7D,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;gBAEf,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,MAAM;CAQ/D"}
|
||||
18
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.js
generated
vendored
Normal file
18
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. a timeout error.
|
||||
*/
|
||||
export class WorkflowOperationError extends ExecutionBaseError {
|
||||
node;
|
||||
timestamp;
|
||||
constructor(message, node, description) {
|
||||
super(message, { cause: undefined });
|
||||
this.level = 'warning';
|
||||
this.name = this.constructor.name;
|
||||
if (description)
|
||||
this.description = description;
|
||||
this.node = node;
|
||||
this.timestamp = Date.now();
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=workflow-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-operation.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-operation.error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,kBAAkB;IAC7D,IAAI,CAAoB;IAEf,SAAS,CAAS;IAE3B,YAAY,OAAe,EAAE,IAAY,EAAE,WAAoB;QAC9D,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,WAAW;YAAE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAChD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,CAAC;CACD"}
|
||||
Reference in New Issue
Block a user