ErrorDetails interface

可能包含在錯誤回應中的詳細資料物件。

簽名:

export interface ErrorDetails 

屬性

屬性 類型 說明
"@type" 字串
網域 字串 發生錯誤的網域。
中繼資料 記錄<字串,未知> 錯誤的其他中繼資料。
原因 字串 錯誤原因。

錯誤詳細資料。"@type"

簽名:

'@type'?: string;

ErrorDetails.domain

發生錯誤的網域。

簽名:

domain?: string;

錯誤詳細資料.metadata

錯誤的其他中繼資料。

簽名:

metadata?: Record<string, unknown>;

ErrorDetails.reason

錯誤原因。

簽名:

reason?: string;