SembleAPIError
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¶
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:89
Generates user-friendly error message
Returns¶
string
Inherited from¶
getSeverityFromStatus()¶
private
static
getSeverityFromStatus(statusCode?
):ErrorSeverity
Defined in: core/SembleError.ts:143
Parameters¶
statusCode?¶
number
Returns¶
isRetryable()¶
isRetryable():
boolean
Defined in: core/SembleError.ts:153
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¶
statusCode?¶
readonly
optional
statusCode:number
Defined in: core/SembleError.ts:127
response?¶
readonly
optional
response:any
Defined in: core/SembleError.ts:128