StaleObjectException
public class StaleObjectException
extends RuntimeException
java.lang.Object |
↳ |
java.lang.Throwable |
|
↳ |
java.lang.Exception |
|
|
↳ |
java.lang.RuntimeException |
|
|
|
↳ |
android.support.test.uiautomator.StaleObjectException |
在底层View
被销毁后使用UiObject2
时,会引发StaleObjectException
异常。 在这种情况下,有必要调用findObject(BySelector)
来获取新的UiObject2
实例。
Summary
Inherited methods |
From class java.lang.Throwable
final void |
addSuppressed(Throwable arg0) |
Throwable |
fillInStackTrace() |
Throwable |
getCause() |
String |
getLocalizedMessage() |
String |
getMessage() |
StackTraceElement[] |
getStackTrace() |
final Throwable[] |
getSuppressed() |
Throwable |
initCause(Throwable arg0) |
void |
printStackTrace() |
void |
printStackTrace(PrintWriter arg0) |
void |
printStackTrace(PrintStream arg0) |
void |
setStackTrace(StackTraceElement[] arg0) |
String |
toString() |
|
From class java.lang.Object
Object |
clone() |
boolean |
equals(Object arg0) |
void |
finalize() |
final Class<?> |
getClass() |
int |
hashCode() |
final void |
notify() |
final void |
notifyAll() |
String |
toString() |
final void |
wait(long arg0, int arg1) |
final void |
wait(long arg0) |
final void |
wait() |
|
Public constructors
StaleObjectException
StaleObjectException ()