HarnessException

public class HarnessException
extends Exception implements IHarnessException

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


فئة الاستثناء الأساسية للاستثناء الذي تم طرحه داخل أداة الاختبار. تساعد هذه الفئة في نقل ErrorIdentifier للإبلاغ عن تفاصيل الخطأ.

ملخّص

طُرق وضع التصميم العامة

HarnessException(ErrorIdentifier errorId)
HarnessException(String message, ErrorIdentifier errorId)
HarnessException(String message, Throwable cause, ErrorIdentifier errorId)
HarnessException(Throwable cause, ErrorIdentifier errorId)

الإجراءات العامة

ErrorIdentifier getErrorId()

تعرض هذه السمة ErrorIdentifier المرتبط بالاستثناء.

String getOrigin()

تعرض هذه السمة مصدر الاستثناء.

String toString()

طُرق محمية

final void setCallerClass(Class<?> clazz)
final void setCallerClass(String clazz)

طُرق وضع التصميم العامة

HarnessException

public HarnessException (ErrorIdentifier errorId)

المعلَمات
errorId ErrorIdentifier

HarnessException

public HarnessException (String message, 
                ErrorIdentifier errorId)

المعلَمات
message String

errorId ErrorIdentifier

HarnessException

public HarnessException (String message, 
                Throwable cause, 
                ErrorIdentifier errorId)

المعلَمات
message String

cause Throwable

errorId ErrorIdentifier

HarnessException

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

المعلَمات
cause Throwable

errorId ErrorIdentifier

الإجراءات العامة

getErrorId

public ErrorIdentifier getErrorId ()

تعرض هذه السمة ErrorIdentifier المرتبط بالاستثناء. يمكن أن تكون القيمة فارغة.

المرتجعات
ErrorIdentifier

getOrigin

public String getOrigin ()

تعرض هذه السمة مصدر الاستثناء.

المرتجعات
String

toString

public String toString ()

المرتجعات
String

طُرق محمية

setCallerClass

protected final void setCallerClass (Class<?> clazz)

المعلَمات
clazz Class

setCallerClass

protected final void setCallerClass (String clazz)

المعلَمات
clazz String