SembleValidationError
n8n-nodes-semble / core/SembleError / SembleValidationError
Class: SembleValidationError¶
Defined in: core/SembleError.ts:271
Data validation errors with field-specific details
Covers input validation scenarios: - Required field validation - Format validation (email, phone, etc.) - Range and constraint validation - Custom business rule validation
Extends¶
Constructors¶
Constructor¶
new SembleValidationError(
message
,field?
,value?
,constraints?
,context?
):SembleValidationError
Defined in: core/SembleError.ts:276
Parameters¶
message¶
string
field?¶
string
value?¶
any
constraints?¶
string
[] = []
context?¶
ErrorContext
= {}
Returns¶
SembleValidationError
Overrides¶
Methods¶
toJSON()¶
toJSON():
Record
\<string
,any
>
Defined in: core/SembleError.ts:73
Converts error to JSON for logging and serialization
Returns¶
Record
\<string
, any
>
Inherited from¶
getUserMessage()¶
getUserMessage():
string
Defined in: core/SembleError.ts:290
Generates user-friendly error message
Returns¶
string
Overrides¶
isRetryable()¶
isRetryable():
boolean
Defined in: core/SembleError.ts:297
Checks if error is retryable based on category and code
Returns¶
boolean
Overrides¶
Properties¶
code¶
readonly
code:string
Defined in: core/SembleError.ts:43
Inherited from¶
category¶
readonly
category:ErrorCategory
Defined in: core/SembleError.ts:44
Inherited from¶
severity¶
readonly
severity:ErrorSeverity
Defined in: core/SembleError.ts:45
Inherited from¶
context¶
readonly
context:ErrorContext
Defined in: core/SembleError.ts:46
Inherited from¶
timestamp¶
readonly
timestamp:Date
Defined in: core/SembleError.ts:47
Inherited from¶
field?¶
readonly
optional
field:string
Defined in: core/SembleError.ts:272
value?¶
readonly
optional
value:any
Defined in: core/SembleError.ts:273
constraints¶
readonly
constraints:string
[]
Defined in: core/SembleError.ts:274