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
..
2023-11-27 15:33:21 +01:00
2023-11-27 15:33:21 +01:00
2023-09-07 15:07:32 +02:00
2023-06-22 20:03:47 +02:00
2023-10-25 16:35:22 +02:00
2023-11-27 15:33:21 +01:00
2023-07-10 19:35:34 +02:00
2023-11-27 15:33:21 +01:00
2023-09-21 13:57:45 +01:00
2023-10-27 14:17:52 +02:00
2023-11-27 15:33:21 +01:00
2023-11-27 15:33:21 +01:00
2023-10-25 16:35:22 +02:00
2023-04-21 14:23:15 +03:00
2023-11-22 17:49:56 +01:00
2023-07-31 11:00:48 +02:00
2023-11-27 15:33:21 +01:00
2023-11-02 15:18:41 +02:00
2023-05-31 11:56:09 +02:00
2023-07-31 16:53:30 +02:00
2023-10-11 12:09:19 +02:00
2023-11-24 18:17:06 +01:00
2023-11-27 15:33:21 +01:00
2023-07-31 11:00:48 +02:00