HarnessRuntimeException
public
class
HarnessRuntimeException
extends Object
implements
IHarnessException
| java.lang.Object | |
| ↳ | com.android.tradefed.error.HarnessRuntimeException |
สรุป
ตัวสร้างแบบสาธารณะ | |
|---|---|
HarnessRuntimeException(String message, IHarnessException cause)
ตัวสร้างสำหรับข้อยกเว้น |
|
HarnessRuntimeException(String message, ErrorIdentifier errorId)
ตัวสร้างสำหรับข้อยกเว้น |
|
HarnessRuntimeException(String message, ErrorIdentifier defaultError, IHarnessException cause)
ตัวสร้างสำหรับข้อยกเว้น |
|
HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId)
ตัวสร้างสำหรับข้อยกเว้น |
|
เมธอดสาธารณะ | |
|---|---|
ErrorIdentifier
|
getErrorId()
แสดง |
String
|
getOrigin()
แสดงผลต้นทางของข้อยกเว้น |
String
|
toString()
|
วิธีการที่มีการป้องกัน | |
|---|---|
final
void
|
setCallerClass(Class<?> clazz)
|
ตัวสร้างแบบสาธารณะ
HarnessRuntimeException
public HarnessRuntimeException (String message,
IHarnessException cause)ตัวสร้างสำหรับข้อยกเว้น
| พารามิเตอร์ | |
|---|---|
message |
String: ข้อความที่เชื่อมโยงกับข้อยกเว้น |
cause |
IHarnessException: IHarnessException ที่ทำให้เกิดข้อยกเว้น |
HarnessRuntimeException
public HarnessRuntimeException (String message,
ErrorIdentifier errorId)ตัวสร้างสำหรับข้อยกเว้น
| พารามิเตอร์ | |
|---|---|
message |
String: ข้อความที่เชื่อมโยงกับข้อยกเว้น |
errorId |
ErrorIdentifier: ErrorIdentifier การจัดหมวดหมู่ข้อยกเว้น |
HarnessRuntimeException
public HarnessRuntimeException (String message,
ErrorIdentifier defaultError,
IHarnessException cause)ตัวสร้างสำหรับข้อยกเว้น
| พารามิเตอร์ | |
|---|---|
message |
String: ข้อความที่เชื่อมโยงกับข้อยกเว้น |
defaultError |
ErrorIdentifier: ErrorIdentifier ที่จะใช้หากไม่ได้ตั้งค่าไว้ในข้อยกเว้น |
cause |
IHarnessException: IHarnessException ที่ทำให้เกิดข้อยกเว้น |
HarnessRuntimeException
public HarnessRuntimeException (String message,
Throwable cause,
ErrorIdentifier errorId)ตัวสร้างสำหรับข้อยกเว้น
| พารามิเตอร์ | |
|---|---|
message |
String: ข้อความที่เชื่อมโยงกับข้อยกเว้น |
cause |
Throwable: สาเหตุของข้อยกเว้น |
errorId |
ErrorIdentifier: 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 |