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

1 2 3 4 5 6 7 8 91011>>

  /external/mockito/src/org/mockito/internal/stubbing/answers/
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...]
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...]
  /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/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/
OperatorException.java 6 private Throwable cause;
8 public OperatorException(String msg, Throwable cause)
20 public Throwable getCause()
OperatorStreamException.java 8 private Throwable cause;
10 public OperatorStreamException(String msg, Throwable cause)
17 public Throwable getCause()
RuntimeOperatorException.java 6 private Throwable cause;
13 public RuntimeOperatorException(String msg, Throwable cause)
20 public Throwable getCause()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
ASN1ParsingException.java 6 private Throwable cause;
13 public ASN1ParsingException(String message, Throwable cause)
19 public Throwable getCause()
ASN1Exception.java 8 private Throwable cause;
15 ASN1Exception(String message, Throwable cause)
21 public Throwable getCause()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
ExtCRLException.java 8 Throwable cause;
10 ExtCRLException(String message, Throwable cause)
16 public Throwable getCause()
AnnotatedException.java 9 private Throwable _underlyingException;
11 AnnotatedException(String string, Throwable e)
23 Throwable getUnderlyingException()
28 public Throwable getCause()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
StoreException.java 6 private Throwable _e;
8 public StoreException(String s, Throwable e)
14 public Throwable getCause()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DecoderException.java 6 private Throwable cause;
8 DecoderException(String msg, Throwable cause)
15 public Throwable getCause()
EncoderException.java 6 private Throwable cause;
8 EncoderException(String msg, Throwable cause)
15 public Throwable getCause()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
ExtCertificateEncodingException.java 8 Throwable cause;
10 ExtCertificateEncodingException(String message, Throwable cause)
16 public Throwable getCause()
  /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/luni/src/test/java/tests/api/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...]
  /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/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/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...]
  /external/junit/src/junit/framework/
Protectable.java 4 * A <em>Protectable</em> can be run and can throw a Throwable.
13 public abstract void protect() throws Throwable;
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
I18nException.java 10 public I18nException(String arg0, Throwable arg1) {
18 public I18nException(Throwable arg0) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/exception/
ExtCertPathBuilderException.java 10 private Throwable cause;
12 public ExtCertPathBuilderException(String message, Throwable cause)
18 public ExtCertPathBuilderException(String msg, Throwable cause,
25 public Throwable getCause()
ExtCertPathValidatorException.java 11 private Throwable cause;
13 public ExtCertPathValidatorException(String message, Throwable cause)
19 public ExtCertPathValidatorException(String msg, Throwable cause,
26 public Throwable getCause()
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/
CertException.java 9 private Throwable cause;
11 public CertException(String msg, Throwable cause)
23 public Throwable getCause()
CertIOException.java 11 private Throwable cause;
13 public CertIOException(String msg, Throwable cause)
25 public Throwable getCause()

Completed in 677 milliseconds

1 2 3 4 5 6 7 8 91011>>