/external/guava/guava/src/com/google/common/base/ |
D | Throwables.java | 57 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfInstanceOf() 59 if (throwable != null && declaredType.isInstance(throwable)) { in propagateIfInstanceOf() 60 throw declaredType.cast(throwable); in propagateIfInstanceOf() 78 public static void propagateIfPossible(@Nullable Throwable throwable) { in propagateIfPossible() argument 79 propagateIfInstanceOf(throwable, Error.class); in propagateIfPossible() 80 propagateIfInstanceOf(throwable, RuntimeException.class); in propagateIfPossible() 103 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfPossible() 104 propagateIfInstanceOf(throwable, declaredType); in propagateIfPossible() 105 propagateIfPossible(throwable); in propagateIfPossible() 123 void propagateIfPossible(@Nullable Throwable throwable, in propagateIfPossible() argument [all …]
|
/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 …]
|
D | IExpectationSetters.java | 43 IExpectationSetters<T> andThrow(Throwable throwable); in andThrow() argument 82 void andStubThrow(Throwable throwable); in andStubThrow() argument
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | UnsupportedOperationExceptionTest.java | 56 Throwable throwable = new Exception("msg"); in test_ConstructorLjava_lang_Throwable() local 57 UnsupportedOperationException exception = new UnsupportedOperationException(throwable); in test_ConstructorLjava_lang_Throwable() 58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable() 59 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable() 60 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable() 74 Throwable throwable = new Exception("msg_exception"); in test_ConstructorLjava_lang_StringLjava_lang_Throwable() local 76 "msg", throwable); in test_ConstructorLjava_lang_StringLjava_lang_Throwable() 79 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
|
D | IllegalStateExceptionTest.java | 55 Throwable throwable = new Exception("msg"); in test_ConstructorLjava_lang_Throwable() local 56 IllegalStateException exception = new IllegalStateException(throwable); in test_ConstructorLjava_lang_Throwable() 57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable() 58 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable() 59 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable() 72 Throwable throwable = new Exception("msg_exception"); in test_ConstructorLjava_lang_StringLjava_lang_Throwable() local 73 IllegalStateException exception = new IllegalStateException("msg", throwable); in test_ConstructorLjava_lang_StringLjava_lang_Throwable() 76 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
|
D | RuntimeExceptionTest.java | 53 Throwable throwable = new Exception("msg"); in test_ConstructorLjava_lang_Throwable() local 54 RuntimeException exception = new RuntimeException(throwable); in test_ConstructorLjava_lang_Throwable() 55 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable() 56 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable() 57 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
|
/external/easymock/src/org/easymock/internal/ |
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 | 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 | 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()
|
D | Result.java | 36 public static Result createThrowResult(final Throwable throwable) { in createThrowResult() argument 42 throw throwable; in createThrowResult() 47 return "Answer throwing " + throwable; in createThrowResult()
|
D | ReplayState.java | 99 public void andThrow(Throwable throwable) { in andThrow() argument 115 public void andStubThrow(Throwable throwable) { in andStubThrow() argument 149 public void setDefaultThrowable(Throwable throwable) { in setDefaultThrowable() argument
|
D | IMocksControlState.java | 28 void andThrow(Throwable throwable); in andThrow() argument 36 void andStubThrow(Throwable throwable); in andStubThrow() argument
|
D | ILegacyMethods.java | 21 void setDefaultThrowable(Throwable throwable); in setDefaultThrowable() argument
|
/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-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/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | InvalidPropertiesFormatExceptionTest.java | 43 Throwable throwable = new Throwable(); in test_Constructor_Ljava_lang_Throwable() local 45 throwable); in test_Constructor_Ljava_lang_Throwable() 47 throwable, exception.getCause()); in test_Constructor_Ljava_lang_Throwable()
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | LoadLocaleProviderTestHelper.java | 24 private Throwable throwable; field in LoadLocaleProviderTestHelper 36 return throwable; in getThrowable() 43 throwable = t; in run()
|
/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/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | MoreExecutorsTest.java | 89 Throwable throwable = throwableFromOtherThread.get(); in testSameThreadExecutorServiceInThreadExecution() local 91 + (throwable == null ? null : Throwables.getStackTraceAsString(throwable)), in testSameThreadExecutorServiceInThreadExecution() 199 Throwable throwable = throwableFromOtherThread.get(); in testSameThreadExecutorServiceTermination() local 201 + (throwable == null ? null : Throwables.getStackTraceAsString(throwable)), in testSameThreadExecutorServiceTermination()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | AbstractFuture.java | 185 protected boolean setException(Throwable throwable) { in setException() argument 186 boolean result = sync.setException(checkNotNull(throwable)); in setException() 193 if (throwable instanceof Error) { in setException() 194 throw (Error) throwable; in setException()
|
D | Monitor.java | 794 } catch (Throwable throwable) { in signalConditionsOfSatisfiedGuards() 799 throw Throwables.propagate(throwable); in signalConditionsOfSatisfiedGuards() 835 } catch (Throwable throwable) { in waitInterruptibly() 837 throw Throwables.propagate(throwable); in waitInterruptibly() 885 } catch (Throwable throwable) { in waitInterruptibly() 887 throw Throwables.propagate(throwable); in waitInterruptibly() 922 } catch (Throwable throwable) { in waitUninterruptibly() 924 throw Throwables.propagate(throwable); in waitUninterruptibly()
|
D | SettableFuture.java | 67 public boolean setException(Throwable throwable) { in setException() argument 68 return super.setException(throwable); in setException()
|
/external/emma/core/java12/com/vladium/logging/ |
D | Logger.java | 277 public final void log (final int level, final String msg, final Throwable throwable) in log() argument 279 _log (level, null, msg, throwable); in log() 292 … final void log (final int level, final String method, final String msg, final Throwable throwable) in log() argument 294 _log (level, method, msg, throwable); in log() 488 final String msg, final Throwable throwable) in _log() argument 530 if (throwable != null) in _log() 535 throwable.printStackTrace (pw); in _log()
|
/external/apache-http/src/org/apache/http/util/ |
D | ExceptionUtils.java | 72 public static void initCause(Throwable throwable, Throwable cause) { in initCause() argument 75 INIT_CAUSE_METHOD.invoke(throwable, new Object[] { cause }); in initCause()
|
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
D | TransformerImpl.java | 652 Throwable throwable = wre.getException(); in transform() 654 while (throwable in transform() 657 throwable = in transform() 658 ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException(); in transform() 661 fatalError(throwable); in transform() 682 private void fatalError(Throwable throwable) throws TransformerException in fatalError() argument 684 if (throwable instanceof org.xml.sax.SAXParseException) in fatalError() 685 …talError(new TransformerException(throwable.getMessage(),new SAXSourceLocator((org.xml.sax.SAXPars… in fatalError() 687 m_errorHandler.fatalError(new TransformerException(throwable)); in fatalError()
|