DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

java.lang.Object
java.lang.Throwable
  java.lang.Exception
    java.lang.RuntimeException
      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

เครื่องมือสร้างสาธารณะ

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