DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


Được gửi khi một thao tác trên thiết bị không mang lại kết quả như mong đợi.

Ví dụ: "pm list users" (danh sách người dùng pm) dự kiến sẽ trả về danh sách người dùng, nếu không thì lỗi này sẽ được báo cáo dưới dạng DeviceRuntimeException vì có sự cố xảy ra.

Tóm tắt

Hàm khởi tạo công khai

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

Tạo DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

Tạo DeviceRuntimeException.

Hàm khởi tạo công khai

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

Tạo DeviceRuntimeException.

Tham số
msg String: thông báo lỗi mô tả lỗi.

errorId ErrorIdentifier: ErrorIdentifier phân loại ngoại lệ.

DeviceRuntimeException

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

Tạo DeviceRuntimeException.

Tham số
msg String: thông báo lỗi mô tả lỗi

t Throwable: Throwable cần được gói trong DeviceRuntimeException.

errorId ErrorIdentifier: ErrorIdentifier phân loại ngoại lệ.