n8n-nodes-semble v2.1.0


n8n-nodes-semble / core/SembleError / SembleAPIError

Class: SembleAPIError

Defined in: core/SembleError.ts:126

API-specific errors from Semble GraphQL endpoints

Handles errors returned by the Semble API including: - HTTP status code mapping - GraphQL error parsing - Rate limiting information - Server error details

Extends

Constructors

Constructor

new SembleAPIError(message, code, statusCode?, context?, response?): SembleAPIError

Defined in: core/SembleError.ts:130

Parameters

message

string

code

string = 'API_ERROR'

statusCode?

number

context?

ErrorContext = {}

response?

any

Returns

SembleAPIError

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:89

Generates user-friendly error message

Returns

string

Inherited from

SembleError.getUserMessage


getSeverityFromStatus()

private static getSeverityFromStatus(statusCode?): ErrorSeverity

Defined in: core/SembleError.ts:143

Parameters

statusCode?

number

Returns

ErrorSeverity


isRetryable()

isRetryable(): boolean

Defined in: core/SembleError.ts:153

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


statusCode?

readonly optional statusCode: number

Defined in: core/SembleError.ts:127


response?

readonly optional response: any

Defined in: core/SembleError.ts:128