HomeSort by relevance Sort by last modified time
    Searched defs:throwable (Results 1 - 25 of 301) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/easymock/src/org/easymock/internal/
ThrowableWrapper.java 18 public class ThrowableWrapper extends Throwable {
22 private final Throwable throwable; field in class:ThrowableWrapper
24 public ThrowableWrapper(final Throwable throwable) {
25 this.throwable = throwable;
28 public Throwable getThrowable() {
29 return throwable;
  /external/mockito/src/org/mockito/internal/stubbing/answers/
ThrowsExceptionClass.java 17 private Class<? extends Throwable> throwableClass;
20 public ThrowsExceptionClass(Class<? extends Throwable> throwableClass) {
25 public Object answer(InvocationOnMock invocation) throws Throwable {
27 Throwable throwable = (Throwable) ObjenesisHelper.newInstance(throwableClass); local
28 throwable.fillInStackTrace();
29 filter.filter(throwable);
30 throw throwable;
33 public Class<? extends Throwable> getThrowableClass()
    [all...]
ThrowsException.java 17 private final Throwable throwable; field in class:ThrowsException
20 public ThrowsException(Throwable throwable) {
21 this.throwable = throwable;
24 public Object answer(InvocationOnMock invocation) throws Throwable {
25 if (new MockUtil().isMock(throwable)) {
26 throw throwable;
28 Throwable t = throwable.fillInStackTrace();
    [all...]
AnswersValidator.java 78 Throwable throwable = answer.getThrowable(); local
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/util/junit/
JUnitFailureHacker.java 18 Throwable throwable = (Throwable) Whitebox.getInternalState(failure, "fThrownException"); local
23 ExceptionIncludingMockitoWarnings e = new ExceptionIncludingMockitoWarnings(newMessage, throwable);
24 e.setStackTrace(throwable.getStackTrace());
  /cts/tests/tests/view/src/android/view/cts/
InflateExceptionTest.java 39 Throwable throwable = new Exception(); local
44 ne = new InflateException(detailMessage, throwable);
72 ne = new InflateException(throwable);
  /external/mockito/src/org/mockito/internal/junit/
JUnitTool.java 17 } catch (Throwable t) {
29 AssertionError throwable = (AssertionError) clazz.getConstructors()[0].newInstance(message, wanted, actual); local
30 return throwable;
31 } catch (Throwable t) {
  /external/mockito/src/org/mockito/internal/listeners/
NotifiedMethodInvocationReport.java 17 private Throwable throwable; field in class:NotifiedMethodInvocationReport
37 * @param throwable Tha throwable raised by the method invocation
39 public NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) {
41 this.throwable = throwable;
52 public Throwable getThrowable() {
53 return throwable;
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
UndeclaredThrowableExceptionTests.java 10 private static EOFException throwable = new EOFException(); field in class:UndeclaredThrowableExceptionTests
17 throwable);
18 assertSame("Wrong cause returned", throwable, ute.getCause());
26 throwable);
27 assertSame("Wrong undeclared throwable returned", throwable, ute
32 * java.lang.reflect.UndeclaredThrowableException#UndeclaredThrowableException(java.lang.Throwable)
36 throwable);
37 assertEquals("Wrong cause returned", throwable, e.getCause());
38 assertEquals("Wrong throwable returned", throwable,
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
InvalidPropertiesFormatExceptionTest.java 40 * {@link java.util.InvalidPropertiesFormatException#InvalidPropertiesFormatException(Throwable)}
43 Throwable throwable = new Throwable(); local
45 throwable);
47 throwable, exception.getCause());
  /libcore/luni/src/test/java/libcore/java/lang/
ThrowableTest.java 28 public synchronized Throwable fillInStackTrace() {
45 } catch (Throwable th) {
64 private static class SuppressionsThrowable extends Throwable {
67 public SuppressionsThrowable(String detailMessage, Throwable throwable,
69 super(detailMessage, throwable, enableSuppression, writableStackTrace);
74 Throwable throwable = new Throwable(); local
75 assertSuppressed(throwable);
85 Throwable throwable = new Throwable(); local
94 Throwable throwable = new Throwable(); local
106 Throwable throwable = new SuppressionsThrowable("foo", null, false, true); local
115 Throwable throwable = new Throwable(); local
124 Throwable throwable = new Throwable(); local
133 Throwable throwable = newThrowable("Throwable", "A", "B"); local
146 Throwable throwable = newThrowable("Throwable", "A", "B"); local
169 Throwable throwable = newThrowable("Throwable", "A", "B"); local
207 Throwable throwable = new Throwable(); local
231 Throwable throwable = newThrowable("Throwable", "A", "B"); local
259 Throwable throwable = newThrowable("Serialized", "A", "B"); local
274 Throwable throwable = new SuppressionsThrowable("foo", null, false, true); local
303 Throwable throwable = new SuppressionsThrowable("foo", null, true, true); local
    [all...]
  /external/guava/guava/src/com/google/common/base/
Throwables.java 32 * Static utility methods pertaining to instances of {@link Throwable}.
42 * Propagates {@code throwable} exactly as-is, if and only if it is an
49 * } catch (Throwable t) {
56 public static <X extends Throwable> void propagateIfInstanceOf(
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 a
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
LoadLocaleProviderTestHelper.java 24 private Throwable throwable; field in class:LoadLocaleProviderTestHelper
35 public Throwable getThrowable() {
36 return throwable;
42 } catch (Throwable t) {
43 throwable = t;
  /developers/build/prebuilts/gradle/BasicImmersiveMode/Application/tests/src/com/example/android/basicimmersivemode/tests/
SampleTests.java 117 } catch (Throwable throwable) {
118 fail(throwable.getMessage());
  /developers/build/prebuilts/gradle/ImmersiveMode/Application/tests/src/com/example/android/immersivemode/tests/
ImmersiveModeSampleTests.java 102 } catch (Throwable throwable) {
103 fail(throwable.getMessage());
  /developers/samples/android/ui/window/BasicImmersiveMode/Application/tests/src/com/example/android/basicimmersivemode/tests/
SampleTests.java 117 } catch (Throwable throwable) {
118 fail(throwable.getMessage());
  /developers/samples/android/ui/window/ImmersiveMode/Application/tests/src/com/example/android/immersivemode/tests/
ImmersiveModeSampleTests.java 102 } catch (Throwable throwable) {
103 fail(throwable.getMessage());
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/
JPDALogWriter.java 122 * @param throwable
125 public void printError(String message, Throwable throwable) {
129 logStream.printStackTrace(getErrorPrefix() + message, throwable); local
135 * @param throwable
138 public void printError(Throwable throwable) {
139 logStream.printStackTrace(null, throwable);
250 * @param throwable
254 Throwable throwable)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowLog.java 22 public static void e(String tag, String msg, Throwable throwable) {
23 addLog(Log.ERROR, tag, msg, throwable);
32 public static void d(String tag, String msg, Throwable throwable) {
33 addLog(Log.DEBUG, tag, msg, throwable);
42 public static void i(String tag, String msg, Throwable throwable) {
43 addLog(Log.INFO, tag, msg, throwable);
52 public static void v(String tag, String msg, Throwable throwable)
124 public final Throwable throwable; field in class:ShadowLog.LogItem
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
RuntimeExceptionTest.java 44 * {@link java.lang.RuntimeException#RuntimeException(Throwable)}
47 Throwable emptyThrowable = new Exception();
53 Throwable throwable = new Exception("msg"); local
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());
IllegalStateExceptionTest.java 46 * {@link java.land.IllegalStateException#IllIllegalStateException(java.lang.Throwable)}
49 Throwable emptyThrowable = new Exception();
55 Throwable throwable = new Exception("msg"); local
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());
63 * {@link java.land.IllegalStateException#IllIllegalStateException(java.lang.String, java.lang.Throwable)}
66 Throwable emptyThrowable = new Exception()
72 Throwable throwable = new Exception("msg_exception"); local
    [all...]
UnsupportedOperationExceptionTest.java 46 * {@link java.land.UnsupportedOperationException#UnsupportedOperationException(java.lang.Throwable)}
49 Throwable emptyThrowable = new Exception();
56 Throwable throwable = new Exception("msg"); local
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());
64 * {@link java.land.UnsupportedOperationException#UnsupportedOperationException(java.lang.String, java.lang.Throwable)}
67 Throwable emptyThrowable = new Exception()
74 Throwable throwable = new Exception("msg_exception"); local
    [all...]
  /cts/tests/app/src/android/app/cts/
IntentServiceStub.java 40 private static Throwable throwable; field in class:IntentServiceStub
49 throwable = null;
52 public static void waitToFinish(long timeout) throws Throwable {
61 if (throwable != null) {
62 throw throwable;
75 } catch (Throwable t) {
76 throwable = t;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
LogTest.java 29 Throwable throwable = new Throwable(); local
31 Log.d("tag", "msg", throwable);
33 assertLogged(Log.DEBUG, "tag", "msg", throwable);
45 Throwable throwable = new Throwable(); local
47 Log.e("tag", "msg", throwable);
49 assertLogged(Log.ERROR, "tag", "msg", throwable);
61 Throwable throwable = new Throwable(); local
77 Throwable throwable = new Throwable(); local
93 Throwable throwable = new Throwable(); local
102 Throwable throwable = new Throwable(); local
116 Throwable throwable = new Throwable(); local
    [all...]
  /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/
ReflectionUtils.java 282 // Throwable propagation
286 * Helper class used in {@link #propagate(Throwable)}.
289 private static Throwable throwable; field in class:ReflectionUtils.ExceptionThrower
291 private ExceptionThrower() throws Throwable {
298 throw throwable;
301 public static synchronized void spit(Throwable t) {
303 ExceptionThrower.throwable = t;
309 ExceptionThrower.throwable = null;
316 * Propagates {@code throwable} as-is without any wrapping. This is trick
    [all...]

Completed in 748 milliseconds

1 2 3 4 5 6 7 8 91011>>