refactor(core): Migrate all errors in cli package to new hierarchy (#13478)

Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
Iván Ovejero
2025-02-27 09:30:55 +02:00
committed by GitHub
co-authored by Tomi Turtiainen
parent 719e3c2cf7
commit 3ca99194c6
107 changed files with 340 additions and 354 deletions
@@ -1,6 +1,6 @@
import { ApplicationError } from 'n8n-workflow';
import { UnexpectedError } from 'n8n-workflow';
export class MalformedRefreshValueError extends ApplicationError {
export class MalformedRefreshValueError extends UnexpectedError {
constructor() {
super('Refresh value must have the same number of values as keys');
}
@@ -1,6 +1,6 @@
import { ApplicationError } from 'n8n-workflow';
import { UnexpectedError } from 'n8n-workflow';
export class UncacheableValueError extends ApplicationError {
export class UncacheableValueError extends UnexpectedError {
constructor(key: string) {
super('Value cannot be cached in Redis', {
extra: { key, hint: 'Does the value contain circular references?' },