DeviceFailedToBootError

public class DeviceFailedToBootError
extends BuildError

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.error.HarnessException
         ↳ com.android.tradefed.targetprep.BuildError
           ↳ com.android.tradefed.targetprep.DeviceFailedToBootError


Được truyền nếu thiết bị không khởi động được sau khi được nhấp nháy bằng một bản dựng.

Tóm tắt

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

DeviceFailedToBootError(String reason, DeviceDescriptor descriptor)

Hàm khởi tạo này không còn được dùng nữa. Thay vào đó, hãy sử dụng DeviceFailedToBootError(String,DeviceDescriptor,ErrorIdentifier)

DeviceFailedToBootError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId)

Tạo một (@link DeviceFailedToBootError} mới kèm theo thông báo lỗi chi tiết.

DeviceFailedToBootError(String reason, DeviceDescriptor descriptor, Throwable cause, ErrorIdentifier errorId)

Tạo một (@link DeviceFailedToBootError} mới kèm theo thông báo lỗi chi tiết.

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

DeviceFailedToBootError

public DeviceFailedToBootError (String reason, 
                DeviceDescriptor descriptor)

Hàm khởi tạo này không còn được dùng nữa.
Thay vào đó, hãy sử dụng DeviceFailedToBootError(String,DeviceDescriptor,ErrorIdentifier)

Tạo một (@link DeviceFailedToBootError} mới kèm theo thông báo lỗi chi tiết.

Tham số
reason String: một thông báo lỗi cung cấp thêm thông tin chi tiết về lỗi khởi động

descriptor DeviceDescriptor: thuộc tính mô tả về thiết bị liên quan đến trường hợp ngoại lệ

DeviceFailedToBootError

public DeviceFailedToBootError (String reason, 
                DeviceDescriptor descriptor, 
                ErrorIdentifier errorId)

Tạo một (@link DeviceFailedToBootError} mới kèm theo thông báo lỗi chi tiết.

Tham số
reason String: một thông báo lỗi cung cấp thêm thông tin chi tiết về lỗi khởi động

descriptor DeviceDescriptor: thuộc tính mô tả về thiết bị liên quan đến trường hợp ngoại lệ

errorId ErrorIdentifier: giá trị nhận dạng lỗi cho lỗi này.

DeviceFailedToBootError

public DeviceFailedToBootError (String reason, 
                DeviceDescriptor descriptor, 
                Throwable cause, 
                ErrorIdentifier errorId)

Tạo một (@link DeviceFailedToBootError} mới kèm theo thông báo lỗi chi tiết.

Tham số
reason String: một thông báo lỗi cung cấp thêm thông tin chi tiết về lỗi khởi động

descriptor DeviceDescriptor: thuộc tính mô tả về thiết bị liên quan đến trường hợp ngoại lệ

cause Throwable: Nguyên nhân ban đầu của trường hợp ngoại lệ

errorId ErrorIdentifier: giá trị nhận dạng lỗi cho lỗi này.