ClassNotFoundConfigurationException

public class ClassNotFoundConfigurationException
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.ClassNotFoundConfigurationException


ConfigurationException,適用於找不到物件類別的情況。

摘要

公用建構函式

ClassNotFoundConfigurationException(String msg, Throwable cause, ErrorIdentifier error, String className, String objectType)

建立 ClassNotFoundConfigurationException

ClassNotFoundConfigurationException(String msg, Throwable cause, ErrorIdentifier error, Map<String, String> rejectedObjects)

建立 ClassNotFoundConfigurationException

公用方法

Map<String, String> getRejectedObjects()

傳回遭拒的物件類別對應。

公用建構函式

ClassNotFoundConfigurationException

public ClassNotFoundConfigurationException (String msg, 
                Throwable cause, 
                ErrorIdentifier error, 
                String className, 
                String objectType)

建立 ClassNotFoundConfigurationException

參數
msg String:有意義的錯誤訊息

cause Throwable:代表錯誤原始原因的 Throwable

error ErrorIdentifier:與例外狀況相關聯的 ErrorIdentifier

className String:找不到的物件類別

objectType String:找不到的物件的 Tradefed 物件型別

ClassNotFoundConfigurationException

public ClassNotFoundConfigurationException (String msg, 
                Throwable cause, 
                ErrorIdentifier error, 
                Map<String, String> rejectedObjects)

建立 ClassNotFoundConfigurationException

參數
msg String:有意義的錯誤訊息

cause Throwable:代表錯誤原始原因的 Throwable

error ErrorIdentifier:與例外狀況相關聯的 ErrorIdentifier

rejectedObjects Map:無法載入的物件對應地圖。

公用方法

getRejectedObjects

public Map<String, String> getRejectedObjects ()

傳回遭拒絕的物件類別對應。

傳回
Map<String, String>