Commit Graph

9 Commits

Author SHA1 Message Date
Iván Ovejero
3ca99194c6
refactor(core): Migrate all errors in cli package to new hierarchy (#13478)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2025-02-27 09:30:55 +02:00
कारतोफ्फेलस्क्रिप्ट™
ac1f651905
chore(core): Stop reporting errors to Sentry for older releases (no-changelog) (#13323) 2025-02-20 12:38:54 +01:00
Tomi Turtiainen
2ab59d775b
refactor(core): Extend error hierarchy (#12267) 2025-02-18 17:47:11 +02:00
Iván Ovejero
b4d27c49e3
fix(core): Account for pre-execution failure in scaling mode (#12815) 2025-01-23 17:26:19 +01:00
कारतोफ्फेलस्क्रिप्ट™
05858c2153
refactor(core): Reorganize n8n-core and enforce file-name casing (no-changelog) (#12667) 2025-01-17 15:17:25 +01:00
कारतोफ्फेलस्क्रिप्ट™
2d36b42798
fix(core): Fix supportedNodes for non-lazy loaded community packages (no-changelog) (#11329) 2024-12-10 14:48:39 +01:00
Tomi Turtiainen
d2238b9eac
refactor: Enable import/order rule for n8n-core (#11016) 2024-09-30 16:38:56 +03:00
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
Iván Ovejero
eec2ec1ff8
refactor(core): Consolidate path-related errors in Sentry (no-changelog) (#7757)
Keep reporting [path-related
errors](https://n8nio.sentry.io/issues/4649493725) in Sentry but
consolidate them in a single error group.

Also, add `options.extra` as `meta` so they remain visible in debug
logs:

```
2023-11-24T11:50:54.852Z | error    | ReportableError: Something went wrong "{ test: 123, file: 'LoggerProxy.js', function: 'exports.error' }"
```

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-11-24 14:42:46 +01:00