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 | ||||
Bir cihaz işlemi beklenen sonuçları vermediğinde oluşturulur.
Örneğin: "pm list users" komutunun kullanıcı listesini döndürmesi beklenir. Bunu yapmaması durumunda, bir şeyler çok yanlış gittiğinden DeviceRuntimeException olarak bildirilmelidir.
Özet
Herkese açık oluşturucular | |
|---|---|
DeviceRuntimeException(String msg, ErrorIdentifier errorId)
|
|
DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)
|
|
Herkese açık oluşturucular
DeviceRuntimeException
public DeviceRuntimeException (String msg,
ErrorIdentifier errorId)DeviceRuntimeException oluşturur.
| Parametreler | |
|---|---|
msg |
String: Hatayla ilgili açıklayıcı bir hata mesajı. |
errorId |
ErrorIdentifier: İstisnayı sınıflandıran ErrorIdentifier. |
DeviceRuntimeException
public DeviceRuntimeException (String msg,
Throwable t,
ErrorIdentifier errorId)DeviceRuntimeException oluşturur.
| Parametreler | |
|---|---|
msg |
String: Hatanın açıklayıcı hata mesajı |
t |
Throwable: DeviceRuntimeException içine alınması gereken Throwable. |
errorId |
ErrorIdentifier: İstisnayı sınıflandıran ErrorIdentifier. |