Searched refs:throwable (Results 1 - 25 of 52) sorted by relevance

123

/external/easymock/src/org/easymock/internal/
H A DThrowableWrapper.java22 private final Throwable throwable; field in class:ThrowableWrapper
24 public ThrowableWrapper(final Throwable throwable) { argument
25 this.throwable = throwable;
29 return throwable;
H A DILegacyMethods.java21 void setDefaultThrowable(Throwable throwable); argument
H A DIMocksControlState.java28 void andThrow(Throwable throwable); argument
36 void andStubThrow(Throwable throwable); argument
H A DRecordState.java103 public void andThrow(Throwable throwable) { argument
105 requireValidThrowable(throwable);
109 lastResult = Result.createThrowResult(throwable);
172 public void andStubThrow(Throwable throwable) { argument
174 requireValidThrowable(throwable);
178 behavior.addStub(lastInvocation, Result.createThrowResult(throwable));
183 public void setDefaultThrowable(Throwable throwable) { argument
185 requireValidThrowable(throwable);
191 .createThrowResult(throwable));
299 private void requireValidThrowable(Throwable throwable) { argument
350 isValidThrowable(Throwable throwable) argument
[all...]
H A DReplayState.java99 public void andThrow(Throwable throwable) { argument
115 public void andStubThrow(Throwable throwable) { argument
149 public void setDefaultThrowable(Throwable throwable) { argument
H A DResult.java36 public static Result createThrowResult(final Throwable throwable) { argument
42 throw throwable;
47 return "Answer throwing " + throwable;
H A DMocksControl.java150 public IExpectationSetters<Object> andThrow(Throwable throwable) { argument
152 state.andThrow(throwable);
185 public void andStubThrow(Throwable throwable) { argument
187 state.andStubThrow(throwable);
308 public void setLegacyDefaultThrowable(Throwable throwable) { argument
310 state.setDefaultThrowable(throwable);
/external/guava/guava/src/com/google/common/base/
H A DThrowables.java42 * Propagates {@code throwable} exactly as-is, if and only if it is an
57 @Nullable Throwable throwable, Class<X> declaredType) throws X {
59 if (throwable != null && declaredType.isInstance(throwable)) {
60 throw declaredType.cast(throwable);
65 * Propagates {@code throwable} exactly as-is, if and only if it is an
78 public static void propagateIfPossible(@Nullable Throwable throwable) { argument
79 propagateIfInstanceOf(throwable, Error.class);
80 propagateIfInstanceOf(throwable, RuntimeException.class);
84 * Propagates {@code throwable} exactl
56 propagateIfInstanceOf( @ullable Throwable throwable, Class<X> declaredType) argument
102 propagateIfPossible( @ullable Throwable throwable, Class<X> declaredType) argument
123 propagateIfPossible(@ullable Throwable throwable, Class<X1> declaredType1, Class<X2> declaredType2) argument
154 propagate(Throwable throwable) argument
168 getRootCause(Throwable throwable) argument
194 getCausalChain(Throwable throwable) argument
211 getStackTraceAsString(Throwable throwable) argument
[all...]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/exceptions/
H A DBlenderFileException.java59 * @param throwable
62 public BlenderFileException(Throwable throwable) { argument
63 super(throwable);
70 * @param throwable
73 public BlenderFileException(String message, Throwable throwable) { argument
74 super(message, throwable);
/external/guava/guava/src/com/google/common/util/concurrent/
H A DSettableFuture.java63 * @param throwable the exception the future should hold.
67 public boolean setException(Throwable throwable) { argument
68 return super.setException(throwable);
H A DAbstractFuture.java177 * to an error, {@code throwable}. This will set the state of the future to
181 * @param throwable the exception that the task failed with.
183 * @throws Error if the throwable was an {@link Error}.
185 protected boolean setException(Throwable throwable) { argument
186 boolean result = sync.setException(checkNotNull(throwable));
193 if (throwable instanceof Error) {
194 throw (Error) throwable;
H A DMonitor.java794 } catch (Throwable throwable) {
799 throw Throwables.propagate(throwable);
835 } catch (Throwable throwable) {
837 throw Throwables.propagate(throwable);
885 } catch (Throwable throwable) {
887 throw Throwables.propagate(throwable);
922 } catch (Throwable throwable) {
924 throw Throwables.propagate(throwable);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
H A DIllegalStateExceptionTest.java55 Throwable throwable = new Exception("msg");
56 IllegalStateException exception = new IllegalStateException(throwable);
57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
58 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
59 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
72 Throwable throwable = new Exception("msg_exception");
73 IllegalStateException exception = new IllegalStateException("msg", throwable);
76 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception
H A DUnsupportedOperationExceptionTest.java56 Throwable throwable = new Exception("msg");
57 UnsupportedOperationException exception = new UnsupportedOperationException(throwable);
58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
59 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
60 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
74 Throwable throwable = new Exception("msg_exception");
76 "msg", throwable);
79 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception
H A DRuntimeExceptionTest.java53 Throwable throwable = new Exception("msg");
54 RuntimeException exception = new RuntimeException(throwable);
55 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
56 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
57 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DInvalidPropertiesFormatExceptionTest.java43 Throwable throwable = new Throwable();
45 throwable);
47 throwable, exception.getCause());
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DLoadLocaleProviderTestHelper.java24 private Throwable throwable; field in class:LoadLocaleProviderTestHelper
36 return throwable;
43 throwable = t;
/external/apache-http/src/org/apache/http/util/
H A DExceptionUtils.java67 * If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
69 * @param throwable The throwable.
70 * @param cause The cause of the throwable.
72 public static void initCause(Throwable throwable, Throwable cause) { argument
75 INIT_CAUSE_METHOD.invoke(throwable, new Object[] { cause });
/external/easymock/src/org/easymock/
H A DMockControl.java155 * @param throwable
164 * if throwable is null.
166 public void setThrowable(Throwable throwable) { argument
169 .andThrow(throwable).once();
210 * @param throwable
221 * if throwable is null.
223 public void setThrowable(Throwable throwable, int times) { argument
226 .andThrow(throwable).times(times);
287 * @param throwable
288 * throwable th
298 setDefaultThrowable(Throwable throwable) argument
376 setThrowable(Throwable throwable, int minCount, int maxCount) argument
382 setThrowable(Throwable throwable, Range range) argument
549 expectAndThrow(Object ignored, Throwable throwable) argument
563 expectAndThrow(Object ignored, Throwable throwable, Range range) argument
579 expectAndThrow(Object ignored, Throwable throwable, int count) argument
594 expectAndThrow(Object ignored, Throwable throwable, int min, int max) argument
623 expectAndDefaultThrow(Object ignored, Throwable throwable) argument
[all...]
H A DIExpectationSetters.java37 * Sets a throwable that will be thrown for the expected invocation.
39 * @param throwable
40 * the throwable to throw.
43 IExpectationSetters<T> andThrow(Throwable throwable); argument
77 * Sets a stub throwable that will be thrown for the expected invocation.
79 * @param throwable
80 * the throwable to throw.
82 void andStubThrow(Throwable throwable); argument
/external/apache-xml/src/main/java/org/apache/xalan/templates/
H A DFuncDocument.java283 catch (Throwable throwable)
286 // throwable.printStackTrace();
290 while (throwable
293 throwable =
294 ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException();
297 if ((throwable instanceof NullPointerException)
298 || (throwable instanceof ClassCastException))
301 (Exception) throwable);
307 if (throwable instanceof TransformerException)
309 TransformerException spe = (TransformerException) throwable;
[all...]
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/
H A DReflectionUtils.java289 private static Throwable throwable; field in class:ReflectionUtils.ExceptionThrower
298 throw throwable;
303 ExceptionThrower.throwable = t;
309 ExceptionThrower.throwable = null;
316 * Propagates {@code throwable} as-is without any wrapping. This is trick.
321 public static RuntimeException propagate(Throwable throwable) { argument
323 ExceptionThrower.spit(throwable);
/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DMoreExecutorsTest.java89 Throwable throwable = throwableFromOtherThread.get();
91 + (throwable == null ? null : Throwables.getStackTraceAsString(throwable)),
199 Throwable throwable = throwableFromOtherThread.get();
201 + (throwable == null ? null : Throwables.getStackTraceAsString(throwable)),
/external/emma/core/java12/com/vladium/logging/
H A DLogger.java269 * Logs 'msg' from an unnamed calling method followed by the 'throwable' stack
275 * @param throwable to dump after message [ignored if null]
277 public final void log (final int level, final String msg, final Throwable throwable) argument
279 _log (level, null, msg, throwable);
283 * Logs 'msg' from a given calling method followed by the 'throwable' stack
290 * @param throwable to dump after message [ignored if null]
292 public final void log (final int level, final String method, final String msg, final Throwable throwable) argument
294 _log (level, method, msg, throwable);
488 final String msg, final Throwable throwable)
530 if (throwable !
487 _log(final int level, final String method, final String msg, final Throwable throwable) argument
[all...]
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
H A DTransformerIdentityImpl.java489 Throwable throwable = wre.getException();
491 while (throwable
494 throwable =
495 ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException();

Completed in 311 milliseconds

123