Khai thácRuntimeException

public class HarnessRuntimeException
extends Object implements IHarnessException

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


Bản tóm tắt

nhà thầu công cộng

HarnessRuntimeException (String message, ErrorIdentifier errorId)

Constructor cho ngoại lệ.

HarnessRuntimeException (String message, IHarnessException cause)

Constructor cho ngoại lệ.

HarnessRuntimeException (String message, Throwable cause, ErrorIdentifier errorId)

Constructor cho ngoại lệ.

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)

nhà thầu công cộng

Khai thácRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

Constructor cho ngoại lệ.

Thông số
message String : Thông báo được liên kết với ngoại lệ

errorId ErrorIdentifier : ErrorIdentifier phân loại ngoại lệ.

Khai thácRuntimeException

public HarnessRuntimeException (String message, 
                IHarnessException cause)

Constructor cho ngoại lệ.

Thông số
message String : Thông báo được liên kết với ngoại lệ

cause IHarnessException : IHarnessException gây ra ngoại lệ.

Khai thácRuntimeException

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

Constructor cho ngoại lệ.

Thông số
message String : Thông báo được liên kết với ngoại lệ

cause Throwable : Nguyên nhân của ngoại lệ

errorId ErrorIdentifier : ErrorIdentifier phân loại ngoại lệ.

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