SembleAuthError
n8n-nodes-semble / core/SembleError / SembleAuthError
Class: SembleAuthError¶
Defined in: core/SembleError.ts:174
Authentication and authorization errors
Covers scenarios including: - Invalid API keys - Expired tokens - Missing authentication headers - OAuth flow errors
Extends¶
Constructors¶
Constructor¶
new SembleAuthError(
message
,code
,credential
,hint?
,context?
):SembleAuthError
Defined in: core/SembleError.ts:178
Parameters¶
message¶
string
code¶
string
= 'AUTH_ERROR'
credential¶
string
= 'unknown'
hint?¶
string
context?¶
ErrorContext
= {}
Returns¶
SembleAuthError
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:191
Generates user-friendly error message
Returns¶
string
Overrides¶
isRetryable()¶
isRetryable():
boolean
Defined in: core/SembleError.ts:199
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¶
credential¶
readonly
credential:string
Defined in: core/SembleError.ts:175
hint?¶
readonly
optional
hint:string
Defined in: core/SembleError.ts:176