n8n-nodes-semble v2.1.0


n8n-nodes-semble / core/SembleError / SemblePermissionError

Class: SemblePermissionError

Defined in: core/SembleError.ts:213

Permission-specific errors with field-level granularity

Handles Semble's permission system including: - Field-level access restrictions - Operation-specific permissions - Role-based access control - Permission inheritance

Extends

Constructors

Constructor

new SemblePermissionError(message, requiredPermission, field?, operation?, context?): SemblePermissionError

Defined in: core/SembleError.ts:218

Parameters

message

string

requiredPermission

string

field?

string

operation?

string

context?

ErrorContext = {}

Returns

SemblePermissionError

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

Generates user-friendly error message

Returns

string

Overrides

SembleError.getUserMessage


isRetryable()

isRetryable(): boolean

Defined in: core/SembleError.ts:246

Checks if error is retryable based on category and code

Returns

boolean

Overrides

SembleError.isRetryable


createFieldPlaceholder()

static createFieldPlaceholder(field, permission): object

Defined in: core/SembleError.ts:253

Creates a placeholder object for restricted fields

Parameters

field

string

permission

string

Returns

object

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


requiredPermission

readonly requiredPermission: string

Defined in: core/SembleError.ts:214


field?

readonly optional field: string

Defined in: core/SembleError.ts:215


operation?

readonly optional operation: string

Defined in: core/SembleError.ts:216