HomeSort by relevance Sort by last modified time
    Searched defs:throwable (Results 1 - 25 of 1014) 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/dagger2/producers/src/main/java/dagger/producers/
Produced.java 74 public static <T> Produced<T> failed(Throwable throwable) {
75 return new Failed<T>(checkNotNull(throwable));
106 private final Throwable throwable; field in class:Produced.Failed
108 private Failed(Throwable throwable) {
109 this.throwable = checkNotNull(throwable);
113 throw new ExecutionException(throwable);
    [all...]
  /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...]
  /external/slf4j/slf4j-api/src/main/java/org/slf4j/helpers/
FormattingTuple.java 37 private Throwable throwable; field in class:FormattingTuple
44 public FormattingTuple(String message, Object[] argArray, Throwable throwable) {
46 this.throwable = throwable;
47 if (throwable == null) {
72 public Throwable getThrowable() {
73 return throwable;
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
BaseThreadedTest.java 43 } catch (Throwable throwable) {
44 Assert.fail(throwable.getMessage());
53 final Throwable[] error = new Throwable[1];
59 } catch (Throwable t) {
  /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...]
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
Vertex.java 54 private Throwable throwable; field in class:Vertex
99 * return the throwable associated with this vertex;
102 * @returns Throwable
104 public Throwable getThrowable() {
105 return throwable;
109 * set throwable associated with this vertex; default value is null.
111 * @param throwable Throwable associated with this vertex
114 void setThrowable(Throwable throwable)
    [all...]