DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


โยนทิ้งเมื่อการทำงานของอุปกรณ์ไม่ส่งผลให้เกิดผลลัพธ์ที่คาดหวัง

ตัวอย่างเช่น: 'ผู้ใช้รายการ pm' คาดว่าจะส่งคืนรายชื่อผู้ใช้อย่างมาก หากไม่ดำเนินการดังกล่าวควรถูกยกให้เป็น DeviceRuntimeException เนื่องจากมีบางอย่างผิดพลาดอย่างมาก

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

DeviceRuntimeException (String msg, ErrorIdentifier errorId)

สร้าง DeviceRuntimeException

DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)

สร้าง DeviceRuntimeException

ผู้รับเหมาก่อสร้างสาธารณะ

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 ที่จัดหมวดหมู่ข้อยกเว้น