共用方式為


Error 元素 (XMLA)

包含 Microsoft SQL Server Analysis Services 執行個體所傳回之錯誤的相關資訊。

語法

<Message>
   <Error 
      ErrorCode="unsignedint" 
      Severity="string" 
      Description="string"
      Source="string"
      HelpFile="string"
   />
</Message>
<!-- or -->
<Cell><!-- or row -->
   <!-- A child element -->
      <Error xmlns="urn:schemas-microsoft-com:xml-analysis:exception"
         < ErrorCode>...</ErrorCode>
         < Description>...</Description>
         < Source>...</Source>
         < HelpFile>...</HelpFile>
      </Error>
   <!-- /A child element -- >
</Cell>

元素特性

特性

描述

資料類型和長度

預設值

基數

0-1: 只能出現一次的選擇性元素。

元素關聯性

關聯性

元素

父元素

Message

子元素

上階子元素
Message

屬性

屬性

描述

ErrorCode

必要的 UnsignedInt 屬性 (只有當 Message 是父元素時)。包含錯誤的數值傳回碼。

Severity

選擇性 String 屬性 (只有當 Message 是父元素時)。包含錯誤的嚴重性。

Description

選擇性 String 屬性 (只有當 Message 是父元素時)。包含錯誤的描述性文字。

Source

選擇性 String 屬性 (只有當 Message 是父元素時)。包含產生錯誤之元件的名稱。

HelpFile

選擇性 String 屬性 (只有當 Message 是父元素時)。包含描述錯誤之說明檔或主題的路徑或 URL。

請參閱

參考

概念