TemplateResolutionError

public class TemplateResolutionError
extends ConfigurationException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.error.HarnessException
         ↳ com.android.tradefed.config.ConfigurationException
           ↳ com.android.tradefed.config.TemplateResolutionError


類別會擴充 ConfigurationException,以處理設定剖析期間的範本相關錯誤。方便偵測這項錯誤。

摘要

公用建構函式

TemplateResolutionError(String configName, String templateName)

建立 TemplateResolutionError

公用方法

String getConfigName()

Return the config name that raised the exception in the first place.

String getTemplateKey()

傳回用於取代範本的範本鍵。

公用建構函式

TemplateResolutionError

public TemplateResolutionError (String configName, 
                String templateName)

建立 TemplateResolutionError

參數
configName String:相關設定名稱

templateName String:用於取代範本的鍵名。

公用方法

getConfigName

public String getConfigName ()

傳回最初引發例外狀況的設定名稱。

傳回
String

getTemplateKey

public String getTemplateKey ()

傳回用於取代範本的範本鍵。

傳回
String