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

12345

/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...]
/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/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/
H A DTestErrorException.java58 * @param throwable exception to enwrap
60 public TestErrorException(String message, Throwable throwable) { argument
61 super(message, throwable);
67 * @param throwable exception to enwrap
69 public TestErrorException(Throwable throwable) { argument
70 super(throwable);
H A DLogWriter.java74 * @param throwable exception to be printed
76 public abstract void printError(String message, Throwable throwable); argument
81 * @param throwable exception to be printed
83 public abstract void printError(Throwable throwable); argument
/external/mockito/src/org/mockito/internal/exceptions/
H A DExceptionIncludingMockitoWarnings.java10 public ExceptionIncludingMockitoWarnings(String message, Throwable throwable) { argument
11 super(message, throwable);
/external/mockito/src/org/mockito/internal/stubbing/answers/
H A DThrowsException.java17 private final Throwable throwable; field in class:ThrowsException
20 public ThrowsException(Throwable throwable) { argument
21 this.throwable = throwable;
25 if (new MockUtil().isMock(throwable)) {
26 throw throwable;
28 Throwable t = throwable.fillInStackTrace();
34 return throwable;
H A DThrowsExceptionClass.java27 Throwable throwable = (Throwable) ObjenesisHelper.newInstance(throwableClass);
28 throwable.fillInStackTrace();
29 filter.filter(throwable);
30 throw throwable;
H A DAnswersValidator.java78 Throwable throwable = answer.getThrowable();
79 if (throwable == null) {
83 if (throwable instanceof RuntimeException || throwable instanceof Error) {
87 if (!methodInfo.isValidException(throwable)) {
88 reporter.checkedExceptionInvalid(throwable);
/external/mockito/src/org/mockito/internal/listeners/
H A DNotifiedMethodInvocationReport.java17 private Throwable throwable; field in class:NotifiedMethodInvocationReport
37 * @param throwable Tha throwable raised by the method invocation
39 public NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) { argument
41 this.throwable = throwable;
53 return throwable;
57 return throwable != null;
74 if (throwable != null ? !throwable
[all...]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowLog.java22 public static void e(String tag, String msg, Throwable throwable) { argument
23 addLog(Log.ERROR, tag, msg, throwable);
32 public static void d(String tag, String msg, Throwable throwable) { argument
33 addLog(Log.DEBUG, tag, msg, throwable);
42 public static void i(String tag, String msg, Throwable throwable) { argument
43 addLog(Log.INFO, tag, msg, throwable);
52 public static void v(String tag, String msg, Throwable throwable) { argument
53 addLog(Log.VERBOSE, tag, msg, throwable);
62 public static void w(String tag, Throwable throwable) { argument
63 w(tag, null, throwable);
68 w(String tag, String msg, Throwable throwable) argument
78 wtf(String tag, String msg, Throwable throwable) argument
87 addLog(int level, String tag, String msg, Throwable throwable) argument
95 logToStream(PrintStream ps, int level, String tag, String msg, Throwable throwable) argument
124 public final Throwable throwable; field in class:ShadowLog.LogItem
126 LogItem(int type, String tag, String msg, Throwable throwable) argument
[all...]
/external/mockito/src/org/mockito/internal/exceptions/stacktrace/
H A DConditionalStackTraceFilter.java19 public void filter(Throwable throwable) { argument
23 StackTraceElement[] filtered = filter.filter(throwable.getStackTrace(), true);
24 throwable.setStackTrace(filtered);
/external/chromium_org/base/android/java/src/org/chromium/base/library_loader/
H A DProcessInitException.java22 * @param throwable The wrapped throwable obj.
24 public ProcessInitException(int errorCode, Throwable throwable) { argument
25 super(null, throwable);
/external/droiddriver/src/com/google/android/droiddriver/exceptions/
H A DUnrecoverableException.java32 public UnrecoverableException(Throwable throwable) { argument
33 super(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);
/external/apache-http/src/org/apache/http/util/
H A DExceptionUtils.java72 * If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
74 * @param throwable The throwable.
75 * @param cause The cause of the throwable.
77 public static void initCause(Throwable throwable, Throwable cause) { argument
80 INIT_CAUSE_METHOD.invoke(throwable, new Object[] { cause });
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DLogTest.java29 Throwable throwable = new Throwable();
31 Log.d("tag", "msg", throwable);
33 assertLogged(Log.DEBUG, "tag", "msg", throwable);
45 Throwable throwable = new Throwable();
47 Log.e("tag", "msg", throwable);
49 assertLogged(Log.ERROR, "tag", "msg", throwable);
61 Throwable throwable = new Throwable();
63 Log.i("tag", "msg", throwable);
65 assertLogged(Log.INFO, "tag", "msg", throwable);
77 Throwable throwable
166 assertLogged(int type, String tag, String msg, Throwable throwable) argument
[all...]
/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...]
/external/mockito/src/org/mockito/internal/util/junit/
H A DJUnitFailureHacker.java18 Throwable throwable = (Throwable) Whitebox.getInternalState(failure, "fThrownException");
23 ExceptionIncludingMockitoWarnings e = new ExceptionIncludingMockitoWarnings(newMessage, throwable);
24 e.setStackTrace(throwable.getStackTrace());
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/
H A DJPDALogWriter.java122 * @param throwable
125 public void printError(String message, Throwable throwable) { argument
129 logStream.printStackTrace(getErrorPrefix() + message, throwable);
135 * @param throwable
138 public void printError(Throwable throwable) { argument
139 logStream.printStackTrace(null, throwable);
250 * @param throwable
254 Throwable throwable) {
258 throwable.printStackTrace(outputStream);
253 printStackTrace(String message, Throwable throwable) argument
/external/mockito/src/org/mockito/internal/junit/
H A DJUnitTool.java29 AssertionError throwable = (AssertionError) clazz.getConstructors()[0].newInstance(message, wanted, actual);
30 return throwable;
/external/mockito/src/org/mockito/stubbing/
H A DDeprecatedOngoingStubbing.java54 * If throwable is a checked exception then it has to
59 * @param throwable to be thrown on method invocation
63 DeprecatedOngoingStubbing<T> toThrow(Throwable throwable); argument
H A DVoidMethodStubbable.java34 * If throwable is a checked exception then it has to
39 * @param throwable to be thrown on method invocation
43 VoidMethodStubbable<T> toThrow(Throwable throwable); argument

Completed in 495 milliseconds

12345