/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/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/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/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()
|
D | MocksControl.java | 150 public IExpectationSetters<Object> andThrow(Throwable throwable) { in andThrow() argument 152 state.andThrow(throwable); in andThrow() 185 public void andStubThrow(Throwable throwable) { in andStubThrow() argument 187 state.andStubThrow(throwable); in andStubThrow() 308 public void setLegacyDefaultThrowable(Throwable throwable) { in setLegacyDefaultThrowable() argument 310 state.setDefaultThrowable(throwable); in setLegacyDefaultThrowable()
|
/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/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/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/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/exceptions/ |
D | BlenderFileException.java | 62 public BlenderFileException(Throwable throwable) { in BlenderFileException() argument 63 super(throwable); in BlenderFileException() 73 public BlenderFileException(String message, Throwable throwable) { in BlenderFileException() argument 74 super(message, throwable); in BlenderFileException()
|
/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/guava/guava/src/com/google/common/io/ |
D | Closer.java | 207 Throwable throwable = thrown; in close() local 215 if (throwable == null) { in close() 216 throwable = e; in close() 218 suppressor.suppress(closeable, throwable, e); in close() 223 if (thrown == null && throwable != null) { in close() 224 Throwables.propagateIfPossible(throwable, IOException.class); in close() 225 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/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()
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/ |
D | ReflectionUtils.java | 289 private static Throwable throwable; field in ReflectionUtils.ExceptionThrower 298 throw throwable; in ExceptionThrower() 303 ExceptionThrower.throwable = t; in spit() 309 ExceptionThrower.throwable = null; in spit() 321 public static RuntimeException propagate(Throwable throwable) { in propagate() argument 323 ExceptionThrower.spit(throwable); in propagate()
|
/external/vogar/src/vogar/util/ |
D | Threads.java | 52 @Override protected void afterExecute(Runnable runnable, Throwable throwable) { in fixedThreadsExecutor() 53 if (throwable != null) { in fixedThreadsExecutor() 54 log.info("Unexpected failure from " + runnable, throwable); in fixedThreadsExecutor()
|