ข้อยกเว้นรันไทม์ของอุปกรณ์

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

DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)

สร้าง DeviceRuntimeException

ผู้สร้างสาธารณะ

ข้อยกเว้นรันไทม์ของอุปกรณ์

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

สร้าง DeviceRuntimeException

พารามิเตอร์
msg String : ข้อความอธิบายข้อผิดพลาดของข้อผิดพลาด

errorId ErrorIdentifier : ErrorIdentifier จัดหมวดหมู่ข้อยกเว้น

ข้อยกเว้นรันไทม์ของอุปกรณ์

public DeviceRuntimeException (String msg, 
                Throwable t, 
                ErrorIdentifier errorId)

สร้าง DeviceRuntimeException

พารามิเตอร์
msg String : ข้อความอธิบายข้อผิดพลาดของข้อผิดพลาด

t Throwable : ERROR(/Throwable) ที่ควรห่อไว้ใน DeviceRuntimeException

errorId ErrorIdentifier : ErrorIdentifier จัดหมวดหมู่ข้อยกเว้น