/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/org/mockito/internal/listeners/ |
D | NotifiedMethodInvocationReport.java | 17 private Throwable throwable; field in NotifiedMethodInvocationReport 39 public NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) { in NotifiedMethodInvocationReport() argument 41 this.throwable = throwable; in NotifiedMethodInvocationReport() 53 return throwable; in getThrowable() 57 return throwable != null; in threwException() 74 … if (throwable != null ? !throwable.equals(that.throwable) : that.throwable != null) return false; in equals() 82 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/mockito/src/org/mockito/internal/stubbing/answers/ |
D | ThrowsException.java | 17 private final Throwable throwable; field in ThrowsException 20 public ThrowsException(Throwable throwable) { in ThrowsException() argument 21 this.throwable = throwable; in ThrowsException() 25 if (new MockUtil().isMock(throwable)) { in answer() 26 throw throwable; in answer() 28 Throwable t = throwable.fillInStackTrace(); in answer() 34 return throwable; in getThrowable()
|
D | AnswersValidator.java | 78 Throwable throwable = answer.getThrowable(); in validateException() local 79 if (throwable == null) { in validateException() 83 if (throwable instanceof RuntimeException || throwable instanceof Error) { in validateException() 87 if (!methodInfo.isValidException(throwable)) { in validateException() 88 reporter.checkedExceptionInvalid(throwable); in validateException()
|
D | ThrowsExceptionClass.java | 27 Throwable throwable = (Throwable) ObjenesisHelper.newInstance(throwableClass); in answer() local 28 throwable.fillInStackTrace(); in answer() 29 filter.filter(throwable); in answer() 30 throw throwable; in answer()
|
/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/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/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/ |
D | JPDALogWriter.java | 125 public void printError(String message, Throwable throwable) { in printError() argument 129 logStream.printStackTrace(getErrorPrefix() + message, throwable); in printError() local 138 public void printError(Throwable throwable) { in printError() argument 139 logStream.printStackTrace(null, throwable); in printError() 254 Throwable throwable) { in printStackTrace() argument 258 throwable.printStackTrace(outputStream); in printStackTrace()
|
/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/jetty/src/java/org/eclipse/jetty/security/ |
D | ServerAuthException.java | 38 public ServerAuthException(String s, Throwable throwable) in ServerAuthException() argument 40 super(s, throwable); in ServerAuthException() 43 public ServerAuthException(Throwable throwable) in ServerAuthException() argument 45 super(throwable); in ServerAuthException()
|
/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()
|
/external/mockito/src/org/mockito/internal/exceptions/stacktrace/ |
D | ConditionalStackTraceFilter.java | 19 public void filter(Throwable throwable) { in filter() argument 23 StackTraceElement[] filtered = filter.filter(throwable.getStackTrace(), true); in filter() 24 throwable.setStackTrace(filtered); in filter()
|
/external/testng/src/main/java/org/testng/internal/ |
D | TestResult.java | 44 Throwable throwable, in TestResult() argument 49 init(testClass, instance, method, throwable, start, end, context); in TestResult() 64 Throwable throwable, in init() argument 70 m_throwable = throwable; in init() 205 public void setThrowable(Throwable throwable) { in setThrowable() argument 206 m_throwable = throwable; in setThrowable()
|
/external/mockito/src/org/mockito/internal/util/junit/ |
D | JUnitFailureHacker.java | 18 Throwable throwable = (Throwable) Whitebox.getInternalState(failure, "fThrownException"); in appendWarnings() local 23 …ExceptionIncludingMockitoWarnings e = new ExceptionIncludingMockitoWarnings(newMessage, throwable); in appendWarnings() 24 e.setStackTrace(throwable.getStackTrace()); in appendWarnings()
|
/external/mockito/src/org/mockito/internal/stubbing/ |
D | BaseStubbing.java | 30 private OngoingStubbing<T> thenThrow(Throwable throwable) { in thenThrow() argument 31 return thenAnswer(new ThrowsException(throwable)); in thenThrow() 76 public DeprecatedOngoingStubbing<T> toThrow(Throwable throwable) { in toThrow() argument 77 return toAnswer(new ThrowsException(throwable)); in toThrow()
|