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>