n8n-nodes-semble v2.1.0


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

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

Generates user-friendly error message

Returns

string

Overrides

SembleError.getUserMessage


isRetryable()

isRetryable(): boolean

Defined in: core/SembleError.ts:199

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


credential

readonly credential: string

Defined in: core/SembleError.ts:175


hint?

readonly optional hint: string

Defined in: core/SembleError.ts:176