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

/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/src/com/google/common/base/
H A DThrowables.java36 * Propagates {@code throwable} exactly as-is, if and only if it is an
51 Throwable throwable, Class<X> declaredType) throws X {
52 if (declaredType.isInstance(throwable)) {
53 throw declaredType.cast(throwable);
58 * Propagates {@code throwable} exactly as-is, if and only if it is an
71 public static void propagateIfPossible(Throwable throwable) { argument
72 propagateIfInstanceOf(throwable, Error.class);
73 propagateIfInstanceOf(throwable, RuntimeException.class);
77 * Propagates {@code throwable} exactly as-is, if and only if it is an
91 * @param throwable th
50 propagateIfInstanceOf( Throwable throwable, Class<X> declaredType) argument
95 propagateIfPossible( Throwable throwable, Class<X> declaredType) argument
116 propagateIfPossible(Throwable throwable, Class<X1> aDeclaredType, Class<X2> anotherDeclaredType) argument
145 propagate(Throwable throwable) argument
159 getRootCause(Throwable throwable) argument
184 getCausalChain(Throwable throwable) argument
201 getStackTraceAsString(Throwable throwable) argument
[all...]
/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/guava/src/com/google/common/util/concurrent/
H A DAbstractFuture.java113 * to an error, {@code throwable}. This will set the state of the future to
117 * @param throwable the exception that the task failed with.
119 * @throws Error if the throwable was an {@link Error}.
121 protected boolean setException(Throwable throwable) { argument
122 boolean result = sync.setException(throwable);
129 if (throwable instanceof Error) {
130 throw (Error) throwable;
H A DFutures.java181 * @throws Error if the throwable was an {@link Error}.
184 Throwable throwable) {
185 checkNotNull(throwable);
187 future.setException(throwable);
201 * @throws Error if the throwable was an {@link Error}.
183 immediateFailedFuture( Throwable throwable) argument
/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/emma/lib/
H A Demma.jar ... .3/s?defs= " (java.lang.Throwable) Throwable cause public void " href="/2.2.3/s ...

Completed in 87 milliseconds