AssertRoleFailedError
Reports that a Role assertion failed because the active context does not hold the required Role.
Extends
Section titled “Extends”BaseAlpyneRuntimeError
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AssertRoleFailedError(
message?):AssertRoleFailedError
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”AssertRoleFailedError
Inherited from
Section titled “Inherited from”BaseAlpyneRuntimeError.constructor
Constructor
Section titled “Constructor”new AssertRoleFailedError(
message?,options?):AssertRoleFailedError
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”AssertRoleFailedError
Inherited from
Section titled “Inherited from”BaseAlpyneRuntimeError.constructor
Properties
Section titled “Properties”
readonlycode:"assert-role-failed"='assert-role-failed'
Identifies this error as a failed Role assertion.
Overrides
Section titled “Overrides”BaseAlpyneRuntimeError.code
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON():
object
Serializes the error as its code, message, and stack for logging and transport.
Returns
Section titled “Returns”object
code:
string
message
Section titled “message”message:
string
stack:
string|undefined
Inherited from
Section titled “Inherited from”BaseAlpyneRuntimeError.toJSON

