mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Move ApplicationError to @n8n/errors (#17667)
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
"bin"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@n8n/errors": "workspace:^",
|
||||
"@n8n/typescript-config": "workspace:*",
|
||||
"@types/express": "catalog:",
|
||||
"@types/jsonwebtoken": "catalog:",
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
|
||||
export abstract class BinaryDataError extends ApplicationError {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
|
||||
export abstract class FileSystemError extends ApplicationError {
|
||||
constructor(message: string, filePath: string) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { inTest, Logger } from '@n8n/backend-common';
|
||||
import type { InstanceType } from '@n8n/constants';
|
||||
import { Service } from '@n8n/di';
|
||||
import type { ReportingOptions } from '@n8n/errors';
|
||||
import type { NodeOptions } from '@sentry/node';
|
||||
import type { ErrorEvent, EventHint } from '@sentry/types';
|
||||
import { AxiosError } from 'axios';
|
||||
import type { ReportingOptions } from 'n8n-workflow';
|
||||
import { ApplicationError, ExecutionCancelledError, BaseError } from 'n8n-workflow';
|
||||
import { createHash } from 'node:crypto';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
|
||||
export class InvalidExecutionMetadataError extends ApplicationError {
|
||||
constructor(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
|
||||
import { CONFIG_MODES } from '../binary-data/utils';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import type {
|
||||
Workflow,
|
||||
INode,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import type {
|
||||
Expression,
|
||||
@@ -13,7 +14,6 @@ import type {
|
||||
WorkflowActivateMode,
|
||||
WorkflowExecuteMode,
|
||||
} from 'n8n-workflow';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
import { HookContext } from '../hook-context';
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
import type {
|
||||
ICredentialDataDecryptedObject,
|
||||
INode,
|
||||
@@ -9,7 +10,6 @@ import type {
|
||||
IWebhookData,
|
||||
WebhookType,
|
||||
} from 'n8n-workflow';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
import { NodeExecutionContext } from './node-execution-context';
|
||||
import { getRequestHelperFunctions } from './utils/request-helper-functions';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
import type { IBinaryData, INodeExecutionData } from 'n8n-workflow';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
import { normalizeItems } from '../normalize-items';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
import type { INodeExecutionData, IDataObject } from 'n8n-workflow';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
/**
|
||||
* Automatically put the objects under a 'json' key and don't error,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Service } from '@n8n/di';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
import type {
|
||||
Workflow,
|
||||
INode,
|
||||
|
||||
Reference in New Issue
Block a user