n8n-nodes-semble v2.1.0


n8n-nodes-semble / core/SembleError / SembleErrorFactory

Class: SembleErrorFactory

Defined in: core/SembleError.ts:383

Error factory for creating appropriate error types based on input

Constructors

Constructor

new SembleErrorFactory(): SembleErrorFactory

Returns

SembleErrorFactory

Methods

createError()

static createError(error, context): SembleError

Defined in: core/SembleError.ts:387

Creates appropriate SembleError subclass based on error characteristics

Parameters

error

any

context

ErrorContext = {}

Returns

SembleError


createConfigError()

static createConfigError(key, issue, expectedType?, actualValue?): SembleConfigError

Defined in: core/SembleError.ts:464

Creates a configuration error with standardized messaging

Parameters

key

string

issue

string

expectedType?

string

actualValue?

any

Returns

SembleConfigError


createPermissionError()

static createPermissionError(permission, field?, operation?): SemblePermissionError

Defined in: core/SembleError.ts:481

Creates a permission error with field-level details

Parameters

permission

string

field?

string

operation?

string

Returns

SemblePermissionError