SembleErrorFactory
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¶
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¶
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