DeviceRuntimeException
public class DeviceRuntimeException
extends HarnessRuntimeException
java.lang.Object | ||
↳ | com.android.tradefed.error.HarnessRuntimeException | |
↳ | com.android.tradefed.device.DeviceRuntimeException |
Bị ném khi một hành động của thiết bị không mang lại kết quả như mong đợi.
Ví dụ: 'pm list users' rất được kỳ vọng sẽ trả về danh sách người dùng, nếu không làm như vậy sẽ được nêu ra dưới dạng DeviceRuntimeException vì đã xảy ra sự cố.
Bản tóm tắt
nhà thầu công cộng | |
---|---|
DeviceRuntimeException (String msg, ErrorIdentifier errorId) Tạo một | |
DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId) Tạo một |
nhà thầu công cộng
DeviceRuntimeException
public DeviceRuntimeException (String msg, ErrorIdentifier errorId)
Tạo một DeviceRuntimeException
.
Thông số | |
---|---|
msg | String : một thông báo lỗi mô tả về lỗi. |
errorId | ErrorIdentifier : ErrorIdentifier phân loại ngoại lệ. |
DeviceRuntimeException
public DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)
Tạo một DeviceRuntimeException
.
Thông số | |
---|---|
msg | String : một thông báo lỗi mô tả về lỗi |
t | Throwable : ERROR(/Throwable) nên được gói trong DeviceRuntimeException . |
errorId | ErrorIdentifier : ErrorIdentifier phân loại ngoại lệ. |