Skip to content

AssertRoleFailedError

Reports that a Role assertion failed because the active context does not hold the required Role.

  • BaseAlpyneRuntimeError

new AssertRoleFailedError(message?): AssertRoleFailedError

string

AssertRoleFailedError

BaseAlpyneRuntimeError.constructor

new AssertRoleFailedError(message?, options?): AssertRoleFailedError

string

ErrorOptions

AssertRoleFailedError

BaseAlpyneRuntimeError.constructor

readonly code: "assert-role-failed" = 'assert-role-failed'

Identifies this error as a failed Role assertion.

BaseAlpyneRuntimeError.code

toJSON(): object

Serializes the error as its code, message, and stack for logging and transport.

object

code: string

message: string

stack: string | undefined

BaseAlpyneRuntimeError.toJSON