DeviceRuntimeException
public
class
DeviceRuntimeException
extends HarnessRuntimeException
java.lang.Object | ||
↳ | com.android.tradefed.error.HarnessRuntimeException | |
↳ | com.android.tradefed.device.DeviceRuntimeException |
แสดงขึ้นเมื่อการดำเนินการของอุปกรณ์ไม่ได้ให้ผลลัพธ์ตามที่คาดไว้
เช่น "pm list users" คาดว่าจะแสดงรายการผู้ใช้ หากไม่แสดงรายการผู้ใช้ก็ควรแสดงเป็น DeviceRuntimeException เนื่องจากมีบางอย่างผิดพลาดอย่างมาก
สรุป
ตัวสร้างแบบสาธารณะ | |
---|---|
DeviceRuntimeException(String msg, ErrorIdentifier errorId)
สร้าง |
|
DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)
สร้าง |
ตัวสร้างแบบสาธารณะ
DeviceRuntimeException
public DeviceRuntimeException (String msg, ErrorIdentifier errorId)
สร้าง DeviceRuntimeException
พารามิเตอร์ | |
---|---|
msg |
String : ข้อความแสดงข้อผิดพลาดที่อธิบายข้อผิดพลาด |
errorId |
ErrorIdentifier : ErrorIdentifier การจัดหมวดหมู่ข้อยกเว้น |
DeviceRuntimeException
public DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)
สร้าง DeviceRuntimeException
พารามิเตอร์ | |
---|---|
msg |
String : ข้อความแสดงข้อผิดพลาดที่อธิบายข้อผิดพลาด |
t |
Throwable : Throwable ที่ควรตัดขึ้นบรรทัดใหม่ใน DeviceRuntimeException |
errorId |
ErrorIdentifier : ErrorIdentifier การจัดหมวดหมู่ข้อยกเว้น |