HarnessIOException

public class HarnessIOException
extends IOException implements IHarnessException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ com.android.tradefed.error.HarnessIOException


有助于处理文件问题的 Harness 异常。

摘要

公共构造函数

HarnessIOException(Throwable cause, ErrorIdentifier errorId)

公共方法

ErrorIdentifier getErrorId()

返回与异常关联的 ErrorIdentifier

String getOrigin()

返回异常的来源。

公共构造函数

HarnessIOException

public HarnessIOException (Throwable cause, 
                ErrorIdentifier errorId)

参数
cause Throwable

errorId ErrorIdentifier

公共方法

getErrorId

public ErrorIdentifier getErrorId ()

返回与异常关联的 ErrorIdentifier。可以为 null。

返回
ErrorIdentifier

getOrigin

public String getOrigin ()

返回异常的来源。

返回
String