Share via


AggregateAuthenticationError class

提供陣列, errors 其中包含來自 ChainedTokenCredential中認證之驗證失敗的AuthenticationError實例。

Extends

Error

建構函式

AggregateAuthenticationError(any[], string)

屬性

errors

嘗試使用 ChainedTokenCredential中的認證進行驗證時所擲回的錯誤物件陣列。

繼承的屬性

message
name
prepareStackTrace

格式化堆疊追蹤的選擇性覆寫

請參閱https://v8.dev/docs/stack-trace-api#customizing-stack-traces

stack
stackTraceLimit

繼承的方法

captureStackTrace(object, Function)

在目標物件上建立 .stack 屬性

建構函式詳細資料

AggregateAuthenticationError(any[], string)

new AggregateAuthenticationError(errors: any[], errorMessage?: string)

參數

errors

any[]

errorMessage

string

屬性詳細資料

errors

嘗試使用 ChainedTokenCredential中的認證進行驗證時所擲回的錯誤物件陣列。

errors: any[]

屬性值

any[]

繼承的屬性詳細資料

message

message: string

屬性值

string

繼承自 Error.message

name

name: string

屬性值

string

繼承自 Error.name

prepareStackTrace

格式化堆疊追蹤的選擇性覆寫

請參閱https://v8.dev/docs/stack-trace-api#customizing-stack-traces

static prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

屬性值

(err: Error, stackTraces: CallSite[]) => any

繼承自 Error.prepareStackTrace

stack

stack?: string

屬性值

string

繼承自 Error.stack

stackTraceLimit

static stackTraceLimit: number

屬性值

number

繼承自 Error.stackTraceLimit

繼承的方法的詳細資料

captureStackTrace(object, Function)

在目標物件上建立 .stack 屬性

static function captureStackTrace(targetObject: object, constructorOpt?: Function)

參數

targetObject

object

constructorOpt

Function

繼承自 Error.captureStackTrace