1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-20 01:19:07 +03:00
n8n/packages/core/test
Iván Ovejero dff8456382
refactor(core): Reorganize error hierarchy in core and workflow packages (no-changelog) (#7820)
Ensure all errors in `core` and `workflow` inherit from
`ApplicationError` so that we start normalizing all the errors we report
to Sentry

Follow-up to:
https://github.com/n8n-io/n8n/pull/7757#discussion_r1404338844

### `core` package

`ApplicationError`
- `FileSystemError` (abstract)
	- `FileNotFoundError`
	- `DisallowedFilepathError`
- `BinaryDataError` (abstract)
	- `InvalidModeError`
	- `InvalidManagerError`
- `InvalidExecutionMetadataError`

### `workflow` package

`ApplicationError`
- `ExecutionBaseError` (abstract)
	- `WorkflowActivationError`
		- `WorkflowDeactivationError`
		- `WebhookTakenError`
	- `WorkflowOperationError`
		- `SubworkflowOperationError`
			- `CliWorkflowOperationError`
	- `ExpressionError`
		- `ExpressionExtensionError`
	- `NodeError` (abstract)
		- `NodeOperationError`
		- `NodeApiError`
	- `NodeSSLError`

Up next:
- Reorganize errors in `cli`
- Flatten the hierarchy in `workflow` (do we really need
`ExecutionBaseError`?)
- Remove `ExecutionError` type
- Stop throwing plain `Error`s
- Replace `severity` with `level`
- Add node and credential types as `tags`
- Add workflow IDs and execution IDs as `extras`
2023-11-27 15:33:21 +01:00
..
helpers build: Upgrade lint related packages (#7790) 2023-11-27 09:11:52 +01:00
workflows feat(core): Add optional Error-Output (#7460) 2023-10-30 18:42:47 +01:00
Cipher.test.ts refactor(core): Migrate from crypto-js to native crypto (#7556) 2023-11-03 13:26:20 +01:00
Credentials.test.ts refactor(core): Abstract away InstanceSettings and encryptionKey into injectable services (no-changelog) (#7471) 2023-10-23 13:39:35 +02:00
FileSystem.manager.test.ts refactor(core): Consolidate binary file not found errors (no-changelog) (#7585) 2023-11-03 11:41:15 +01:00
InstanceSettings.test.ts fix(core): Create instance settings directory recursively (no-changelog) (#7506) 2023-10-24 15:10:22 +02:00
NodeExecuteFunctions.test.ts refactor(core): Make Logger a service (no-changelog) (#7494) 2023-10-25 16:35:22 +02:00
ObjectStore.manager.test.ts refactor(core): Make pruning via lifecycle configuration in S3 mode mandatory (#7482) 2023-10-24 10:37:02 +02:00
ObjectStore.service.test.ts refactor(core): Make Logger a service (no-changelog) (#7494) 2023-10-25 16:35:22 +02:00
setup-mocks.ts fix(core): Upgrade crypto-js to address CVE-2023-46233 (#7519) 2023-10-26 11:21:53 +02:00
setup.ts fix(HTTP Request Node): Show detailed error message in the UI again (#5959) 2023-04-12 14:58:05 +02:00
utils.ts feat(core): Switch binary filesystem mode to nested path structure (#7307) 2023-10-10 10:06:06 +02:00
Validation.test.ts refactor(core): Make Logger a service (no-changelog) (#7494) 2023-10-25 16:35:22 +02:00
WorkflowExecute.test.ts refactor(core): Make Logger a service (no-changelog) (#7494) 2023-10-25 16:35:22 +02:00
WorkflowExecutionMetadata.test.ts refactor(core): Reorganize error hierarchy in core and workflow packages (no-changelog) (#7820) 2023-11-27 15:33:21 +01:00