/external/guava/guava/src/com/google/common/base/ |
D | Throwables.java | 61 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfInstanceOf() 63 if (throwable != null && declaredType.isInstance(throwable)) { in propagateIfInstanceOf() 64 throw declaredType.cast(throwable); in propagateIfInstanceOf() 82 public static void propagateIfPossible(@Nullable Throwable throwable) { in propagateIfPossible() argument 83 propagateIfInstanceOf(throwable, Error.class); in propagateIfPossible() 84 propagateIfInstanceOf(throwable, RuntimeException.class); in propagateIfPossible() 107 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfPossible() 108 propagateIfInstanceOf(throwable, declaredType); in propagateIfPossible() 109 propagateIfPossible(throwable); in propagateIfPossible() 127 void propagateIfPossible(@Nullable Throwable throwable, in propagateIfPossible() argument [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowLog.java | 22 public static void e(String tag, String msg, Throwable throwable) { in e() argument 23 addLog(Log.ERROR, tag, msg, throwable); in e() 32 public static void d(String tag, String msg, Throwable throwable) { in d() argument 33 addLog(Log.DEBUG, tag, msg, throwable); in d() 42 public static void i(String tag, String msg, Throwable throwable) { in i() argument 43 addLog(Log.INFO, tag, msg, throwable); in i() 52 public static void v(String tag, String msg, Throwable throwable) { in v() argument 53 addLog(Log.VERBOSE, tag, msg, throwable); in v() 62 public static void w(String tag, Throwable throwable) { in w() argument 63 w(tag, null, throwable); in w() [all …]
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | LogTest.java | 29 Throwable throwable = new Throwable(); in d_shouldLogAppropriately_withThrowable() local 31 Log.d("tag", "msg", throwable); in d_shouldLogAppropriately_withThrowable() 33 assertLogged(Log.DEBUG, "tag", "msg", throwable); in d_shouldLogAppropriately_withThrowable() 45 Throwable throwable = new Throwable(); in e_shouldLogAppropriately_withThrowable() local 47 Log.e("tag", "msg", throwable); in e_shouldLogAppropriately_withThrowable() 49 assertLogged(Log.ERROR, "tag", "msg", throwable); in e_shouldLogAppropriately_withThrowable() 61 Throwable throwable = new Throwable(); in i_shouldLogAppropriately_withThrowable() local 63 Log.i("tag", "msg", throwable); in i_shouldLogAppropriately_withThrowable() 65 assertLogged(Log.INFO, "tag", "msg", throwable); in i_shouldLogAppropriately_withThrowable() 77 Throwable throwable = new Throwable(); in v_shouldLogAppropriately_withThrowable() local [all …]
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/ |
D | ThrowsException.java | 20 private final Throwable throwable; field in ThrowsException 23 public ThrowsException(Throwable throwable) { in ThrowsException() argument 24 this.throwable = throwable; in ThrowsException() 28 if (MockUtil.isMock(throwable)) { in answer() 29 throw throwable; in answer() 31 Throwable t = throwable.fillInStackTrace(); in answer() 34 throw throwable; in answer() 42 if (throwable == null) { in validateFor() 46 if (throwable instanceof RuntimeException || throwable instanceof Error) { in validateFor() 50 if (!new InvocationInfo(invocation).isValidException(throwable)) { in validateFor() [all …]
|
D | ThrowsExceptionClass.java | 35 Throwable throwable = ObjenesisHelper.newInstance(throwableClass); in answer() local 36 throwable.fillInStackTrace(); in answer() 37 filter.filter(throwable); in answer() 38 throw throwable; in answer()
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | NotifiedMethodInvocationReport.java | 19 private final Throwable throwable; field in NotifiedMethodInvocationReport 32 this.throwable = null; in NotifiedMethodInvocationReport() 42 public NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) { in NotifiedMethodInvocationReport() argument 45 this.throwable = throwable; in NotifiedMethodInvocationReport() 57 return throwable; in getThrowable() 61 return throwable != null; in threwException() 77 areEqual(throwable, that.throwable); in equals() 83 result = 31 * result + (throwable != null ? throwable.hashCode() : 0); in hashCode()
|
/external/easymock/src/org/easymock/ |
D | MockControl.java | 166 public void setThrowable(Throwable throwable) { in setThrowable() argument 169 .andThrow(throwable).once(); in setThrowable() 223 public void setThrowable(Throwable throwable, int times) { in setThrowable() argument 226 .andThrow(throwable).times(times); in setThrowable() 298 public void setDefaultThrowable(Throwable throwable) { in setDefaultThrowable() argument 299 ctrl.setLegacyDefaultThrowable(throwable); in setDefaultThrowable() 376 public void setThrowable(Throwable throwable, int minCount, int maxCount) { in setThrowable() argument 379 .andThrow(throwable).times(minCount, maxCount); in setThrowable() 382 public void setThrowable(Throwable throwable, Range range) { in setThrowable() argument 385 .andThrow(throwable); in setThrowable() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | Exceptions.java | 34 public static RuntimeException rethrowCause(Throwable throwable) { in rethrowCause() argument 35 Throwable cause = throwable; in rethrowCause() 43 public static RuntimeException rethrow(Throwable throwable) { in rethrow() argument 44 if(throwable instanceof RuntimeException) { in rethrow() 45 throw (RuntimeException)throwable; in rethrow() 46 } else if(throwable instanceof Error) { in rethrow() 47 throw (Error)throwable; in rethrow() 49 throw new UnhandledCheckedUserException(throwable); in rethrow()
|
/external/dagger2/producers/src/main/java/dagger/producers/ |
D | Produced.java | 74 public static <T> Produced<T> failed(Throwable throwable) { in failed() argument 75 return new Failed<T>(checkNotNull(throwable)); in failed() 106 private final Throwable throwable; field in Produced.Failed 108 private Failed(Throwable throwable) { in Failed() argument 109 this.throwable = checkNotNull(throwable); in Failed() 113 throw new ExecutionException(throwable); in get() 121 return this.throwable.equals(that.throwable); in equals() 128 return throwable.hashCode(); in hashCode()
|
/external/vogar/src/vogar/target/junit/ |
D | ErrorRunner.java | 39 private final Throwable throwable; field in ErrorRunner 41 public ErrorRunner(Description description, Throwable throwable) { in ErrorRunner() argument 43 this.throwable = throwable; in ErrorRunner() 47 if (throwable instanceof InitializationError) { in ErrorRunner() 48 InitializationError error = (InitializationError) throwable; in ErrorRunner() 50 throwable.addSuppressed(cause); in ErrorRunner() 63 notifier.fireTestFailure(new Failure(description, throwable)); in run()
|
/external/droiddriver/src/io/appium/droiddriver/exceptions/ |
D | DroidDriverException.java | 61 public static DroidDriverException propagate(Throwable throwable) { in propagate() argument 62 if (throwable instanceof RuntimeException) { in propagate() 63 throw (RuntimeException) throwable; in propagate() 65 if (throwable instanceof Error) { in propagate() 66 throw (Error) throwable; in propagate() 68 throw new DroidDriverException(throwable); in propagate()
|
/external/easymock/src/org/easymock/internal/ |
D | RecordState.java | 103 public void andThrow(Throwable throwable) { in andThrow() argument 105 requireValidThrowable(throwable); in andThrow() 109 lastResult = Result.createThrowResult(throwable); in andThrow() 172 public void andStubThrow(Throwable throwable) { in andStubThrow() argument 174 requireValidThrowable(throwable); in andStubThrow() 178 behavior.addStub(lastInvocation, Result.createThrowResult(throwable)); in andStubThrow() 183 public void setDefaultThrowable(Throwable throwable) { in setDefaultThrowable() argument 185 requireValidThrowable(throwable); in setDefaultThrowable() 191 .createThrowResult(throwable)); in setDefaultThrowable() 299 private void requireValidThrowable(Throwable throwable) { in requireValidThrowable() argument [all …]
|
D | ThrowableWrapper.java | 22 private final Throwable throwable; field in ThrowableWrapper 24 public ThrowableWrapper(final Throwable throwable) { in ThrowableWrapper() argument 25 this.throwable = throwable; in ThrowableWrapper() 29 return throwable; in getThrowable()
|
/external/slf4j/slf4j-api/src/main/java/org/slf4j/helpers/ |
D | FormattingTuple.java | 37 private Throwable throwable; field in FormattingTuple 44 public FormattingTuple(String message, Object[] argArray, Throwable throwable) { in FormattingTuple() argument 46 this.throwable = throwable; in FormattingTuple() 47 if (throwable == null) { in FormattingTuple() 73 return throwable; in getThrowable()
|
/external/slf4j/slf4j-ext/src/main/java/org/slf4j/ext/ |
D | XLogger.java | 157 public <T extends Throwable> T throwing(T throwable) { in throwing() argument 159 …er) logger).log(THROWING_MARKER, FQCN, LocationAwareLogger.ERROR_INT, "throwing", null, throwable); in throwing() 161 return throwable; in throwing() 172 public <T extends Throwable> T throwing(Level level, T throwable) { in throwing() argument 174 …(LocationAwareLogger) logger).log(THROWING_MARKER, FQCN, level.level, "throwing", null, throwable); in throwing() 176 return throwable; in throwing() 185 public void catching(Throwable throwable) { in catching() argument 187 …er) logger).log(CATCHING_MARKER, FQCN, LocationAwareLogger.ERROR_INT, "catching", null, throwable); in catching() 199 public void catching(Level level, Throwable throwable) { in catching() argument 201 …(LocationAwareLogger) logger).log(CATCHING_MARKER, FQCN, level.level, "catching", null, throwable); in catching()
|
/external/junit-params/src/main/java/junitparams/internal/ |
D | DeferredErrorFrameworkMethod.java | 15 private final Throwable throwable; field in DeferredErrorFrameworkMethod 18 Throwable throwable) { in DeferredErrorFrameworkMethod() argument 20 this.throwable = throwable; in DeferredErrorFrameworkMethod() 28 throw throwable; in getInvokeStatement()
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
D | FuncDocument.java | 283 catch (Throwable throwable) in getDoc() 290 while (throwable in getDoc() 293 throwable = in getDoc() 294 ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException(); in getDoc() 297 if ((throwable instanceof NullPointerException) in getDoc() 298 || (throwable instanceof ClassCastException)) in getDoc() 301 (Exception) throwable); in getDoc() 307 if (throwable instanceof TransformerException) in getDoc() 309 TransformerException spe = (TransformerException) throwable; in getDoc() 345 diagnosticsWriter.println(" (" + throwable.getClass().getName() in getDoc() [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | TestThread.java | 248 } catch (Throwable throwable) { in run() 249 responseQueue.put(new Response(request.methodName, null, throwable)); in run() 276 final Throwable throwable; field in TestThread.Response 278 Response(String methodName, Object result, Throwable throwable) { in Response() argument 281 this.throwable = throwable; in Response() 285 if (throwable != null) { in getResult() 286 throw (AssertionFailedError) new AssertionFailedError().initCause(throwable); in getResult() 292 assertNotNull(throwable); in getThrowable() 293 return throwable; in getThrowable()
|
/external/vogar/src/vogar/target/junit/junit3/ |
D | TestCaseRunnerFactory.java | 81 Class<? extends Test> testClass, String name, Throwable throwable) { in createFailingTest() argument 84 return new ThrowingStatement(description, throwable); in createFailingTest() 157 private final Throwable throwable; field in TestCaseRunnerFactory.ThrowingStatement 159 public ThrowingStatement(Description description, Throwable throwable) { in ThrowingStatement() argument 161 this.throwable = throwable; in ThrowingStatement() 166 throw throwable; in evaluate()
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/ |
D | TestErrorException.java | 60 public TestErrorException(String message, Throwable throwable) { in TestErrorException() argument 61 super(message, throwable); in TestErrorException() 69 public TestErrorException(Throwable throwable) { in TestErrorException() argument 70 super(throwable); in TestErrorException()
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/ |
D | ThrowsExceptionTest.java | 20 } catch (Throwable throwable) { in should_raise_wanted_throwable() 21 … assertThat(throwable).isInstanceOf(IllegalStateException.class).hasMessage("my dear throwable"); in should_raise_wanted_throwable() 30 } catch (Throwable throwable) { in should_throw_mock_exception_without_stacktrace() 31 assertThat(throwable.getStackTrace()).describedAs("no stack trace, it's mock").isNull(); in should_throw_mock_exception_without_stacktrace() 47 } catch (Throwable throwable) { in should_fill_in_exception_stacktrace() 49 throwable.printStackTrace(); in should_fill_in_exception_stacktrace()
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/ |
D | JPDALogWriter.java | 128 public void printError(String message, Throwable throwable) { in printError() argument 132 logStream.printStackTrace(getErrorPrefix() + message, throwable); in printError() local 142 public void printError(Throwable throwable) { in printError() argument 143 logStream.printStackTrace(null, throwable); in printError() 260 Throwable throwable) { in printStackTrace() argument 264 throwable.printStackTrace(outputStream); in printStackTrace()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | SafeJUnitRuleTest.java | 82 } catch (AssertionError throwable) { in expected_exception_message_did_not_match() 83 Assertions.assertThat(throwable).hasMessageContaining("Expecting message"); in expected_exception_message_did_not_match() 99 } catch (AssertionError throwable) { in expected_exception_type_did_not_match() 100 Assertions.assertThat(throwable).hasMessageContaining("but was instance of"); in expected_exception_type_did_not_match() 120 } catch (AssertionError throwable) { in expected_exception_assert_did_not_match() 121 assertEquals(throwable.getMessage(), "x"); in expected_exception_assert_did_not_match()
|
/external/desugar/java/com/google/devtools/common/options/ |
D | OptionsParsingException.java | 34 public OptionsParsingException(String message, Throwable throwable) { in OptionsParsingException() argument 35 this(message, null, throwable); in OptionsParsingException() 38 public OptionsParsingException(String message, String argument, Throwable throwable) { in OptionsParsingException() argument 39 super(message, throwable); in OptionsParsingException()
|
/external/guava/guava/src/com/google/common/io/ |
D | Closer.java | 208 Throwable throwable = thrown; in close() local 216 if (throwable == null) { in close() 217 throwable = e; in close() 219 suppressor.suppress(closeable, throwable, e); in close() 224 if (thrown == null && throwable != null) { in close() 225 Throwables.propagateIfPossible(throwable, IOException.class); in close() 226 throw new AssertionError(throwable); // not possible in close()
|