Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.

Khai thácException

public class HarnessException
extends Object implements IHarnessException

java.lang.Object
com.android.tradefed.error.HarnessException


Lớp ngoại lệ cơ sở cho ngoại lệ được ném trong khai thác. Lớp này giúp mang ErrorIdentifier để báo cáo chi tiết lỗi.

Bản tóm tắt

nhà thầu công cộng

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

Phương thức công khai

ErrorIdentifier getErrorId ()

Trả về ErrorIdentifier được liên kết với ngoại lệ.

String getOrigin ()

Trả về nguồn gốc của ngoại lệ.

String toString ()

phương pháp được bảo vệ

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

nhà thầu công cộng

Khai thácException

public HarnessException (ErrorIdentifier errorId)

Thông số
errorId ErrorIdentifier

Khai thácException

public HarnessException (String message, 
                ErrorIdentifier errorId)

Thông số
message String

errorId ErrorIdentifier

Khai thácException

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

Thông số
cause Throwable

errorId ErrorIdentifier

Khai thácException

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

Thông số
message String

cause Throwable

errorId ErrorIdentifier

Phương thức công khai

getErrorId

public ErrorIdentifier getErrorId ()

Trả về ErrorIdentifier được liên kết với ngoại lệ. Có thể là vô giá trị.

trả lại
ErrorIdentifier

getOrigin

public String getOrigin ()

Trả về nguồn gốc của ngoại lệ.

trả lại
String

toString

public String toString ()

trả lại
String

phương pháp được bảo vệ

setCallerClass

protected final void setCallerClass (Class<?> clazz)

Thông số
clazz Class

setCallerClass

protected final void setCallerClass (String clazz)

Thông số
clazz String