n8n-nodes-semble v2.1.0


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

SembleError.constructor

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

SembleError.toJSON


getUserMessage()

getUserMessage(): string

Defined in: core/SembleError.ts:290

Generates user-friendly error message

Returns

string

Overrides

SembleError.getUserMessage


isRetryable()

isRetryable(): boolean

Defined in: core/SembleError.ts:297

Checks if error is retryable based on category and code

Returns

boolean

Overrides

SembleError.isRetryable

Properties

code

readonly code: string

Defined in: core/SembleError.ts:43

Inherited from

SembleError.code


category

readonly category: ErrorCategory

Defined in: core/SembleError.ts:44

Inherited from

SembleError.category


severity

readonly severity: ErrorSeverity

Defined in: core/SembleError.ts:45

Inherited from

SembleError.severity


context

readonly context: ErrorContext

Defined in: core/SembleError.ts:46

Inherited from

SembleError.context


timestamp

readonly timestamp: Date

Defined in: core/SembleError.ts:47

Inherited from

SembleError.timestamp


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