SemblePermissionError
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¶
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:232
Generates user-friendly error message
Returns¶
string
Overrides¶
isRetryable()¶
isRetryable():
boolean
Defined in: core/SembleError.ts:246
Checks if error is retryable based on category and code
Returns¶
boolean
Overrides¶
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¶
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¶
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