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 (String msg, Throwable t, ErrorIdentifier errorId) یک  | |
سازندگان عمومی
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که استثناها را دسته بندی می کند. | 
