Home
last modified time | relevance | path

Searched refs:getTargetException (Results 1 – 25 of 40) sorted by relevance

12

/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/util/
DReflectionHelpers.java251 if (e.getTargetException() instanceof RuntimeException) {
252 throw (RuntimeException) e.getTargetException();
254 if (e.getTargetException() instanceof Error) {
255 throw (Error) e.getTargetException();
257 throw new RuntimeException(e.getTargetException());
285 if (e.getTargetException() instanceof RuntimeException) {
286 throw (RuntimeException) e.getTargetException();
288 if (e.getTargetException() instanceof Error) {
289 throw (Error) e.getTargetException();
291 throw new RuntimeException(e.getTargetException());
[all …]
/external/junit/src/main/java/org/junit/internal/runners/
DMethodRoadie.java113 Throwable actual = e.getTargetException(); in runTestMethod()
136 throw e.getTargetException(); in runBefores()
152 addFailure(e.getTargetException()); in runAfters()
DClassRoadie.java59 throw e.getTargetException(); in runBefores()
75 addFailure(e.getTargetException()); in runAfters()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/
DOptionalMethod.java90 Throwable targetException = e.getTargetException(); in invokeOptionalWithoutCheckedException()
133 Throwable targetException = e.getTargetException(); in invokeWithoutCheckedException()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DOptionalMethod.java89 Throwable targetException = e.getTargetException(); in invokeOptionalWithoutCheckedException()
132 Throwable targetException = e.getTargetException(); in invokeWithoutCheckedException()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DOptionalMethodTest.java207 assertTrue(expected.getTargetException() instanceof IOException); in invokeWithException()
213 assertTrue(expected.getTargetException() instanceof NumberFormatException); in invokeWithException()
284 assertTrue(expected.getTargetException() instanceof IOException); in invokeOptionalWithException()
290 assertTrue(expected.getTargetException() instanceof NumberFormatException); in invokeOptionalWithException()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/
DStackTrace002Debuggee.java402 if (e.getTargetException() instanceof TestException) { in breakpointIntConstantWithExceptionAndNativeTransition()
403 throw (TestException) e.getTargetException(); in breakpointIntConstantWithExceptionAndNativeTransition()
533 if (e.getTargetException() instanceof TestException) { in breakpointObjectWithExceptionAndNativeTransition()
534 throw (TestException) e.getTargetException(); in breakpointObjectWithExceptionAndNativeTransition()
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/
DOptionalMethod.java94 Throwable targetException = e.getTargetException(); in invokeOptionalWithoutCheckedException()
137 Throwable targetException = e.getTargetException(); in invokeWithoutCheckedException()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DFieldInitializerTest.java92 assertTrue(ite.getTargetException() instanceof NullPointerException); in should_fail_to_instantiate_field_if_default_constructor_throws_exception()
93 assertEquals("business logic failed", ite.getTargetException().getMessage()); in should_fail_to_instantiate_field_if_default_constructor_throws_exception()
/external/junit/src/main/java/org/junit/internal/runners/model/
DReflectiveCallable.java14 throw e.getTargetException(); in run()
/external/jcommander/src/main/java/com/beust/jcommander/
DParameterized.java197 if (ex.getTargetException() instanceof ParameterException) { in set()
198 throw (ParameterException) ex.getTargetException(); in set()
/external/guice/core/src/com/google/inject/internal/
DDelegatingInvocationHandler.java56 throw e.getTargetException(); in invoke()
DTypeConverterBindingProcessor.java135 throw new RuntimeException(e.getTargetException().getMessage()); in convertToPrimitiveType()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DFieldInitializer.java202 … "' has raised an exception (see the stack trace for cause): " + e.getTargetException().toString()… in instantiate()
276 … "' has raised an exception (see the stack trace for cause): " + e.getTargetException().toString()… in instantiate()
DBeanPropertySetter.java62 …" + target + "' with value '" + value + "' threw exception : '" + e.getTargetException() + "'", e); in set()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DExceptionExtensions.cs84 public static Exception getTargetException(TargetInvocationException e) { in getTargetException() method in Antlr.Runtime.JavaExtensions.ExceptionExtensions
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DExceptionExtensions.cs94 public static Exception getTargetException( this TargetInvocationException e ) in getTargetException() method in Antlr.Runtime.JavaExtensions.ExceptionExtensions
/external/apache-http/src/org/apache/commons/logging/impl/
DSimpleLog.java675 if (e.getTargetException() instanceof SecurityException) { in getContextClassLoader()
681 ("Unexpected InvocationTargetException", e.getTargetException()); in getContextClassLoader()
/external/slf4j/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/
DSimpleLog.java648 if (e.getTargetException() instanceof SecurityException) { in getContextClassLoader()
653 …hrow new LogConfigurationException("Unexpected InvocationTargetException", e.getTargetException()); in getContextClassLoader()
/external/conscrypt/api-doclet/src/main/java/org/conscrypt/doclet/
DFilterDoclet.java141 throw e.getTargetException(); in invoke()
/external/javasqlite/src/main/java/SQLite/
DJDBCDriver.java112 throw new SQLException(ie.getTargetException().toString()); in connect()
/external/droiddriver/src/io/appium/droiddriver/helpers/
DBaseDroidDriverTest.java250 Throwable exception = e.getTargetException(); in runTest()
/external/junit/src/main/java/junit/framework/
DTestSuite.java70 …ing("Exception in constructor: " + name + " (" + exceptionToString(e.getTargetException()) + ")")); in createTest()
/external/apache-http/src/org/apache/commons/logging/
DLogFactory.java867 if (e.getTargetException() instanceof SecurityException) {
873 ("Unexpected InvocationTargetException", e.getTargetException());
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DTestThread.java246 new Response(request.methodName, null, exception.getTargetException())); in run()

12