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

1 2 3 4 5 6 7 8

  /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;
ILegacyMethods.java 21 void setDefaultThrowable(Throwable throwable);
  /frameworks/base/core/java/android/view/
InflateException.java 28 public InflateException(String detailMessage, Throwable throwable) {
29 super(detailMessage, throwable);
36 public InflateException(Throwable throwable) {
37 super(throwable);
  /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/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/exceptions/
BlenderFileException.java 59 * @param throwable
62 public BlenderFileException(Throwable throwable) {
63 super(throwable);
70 * @param throwable
73 public BlenderFileException(String message, Throwable throwable) {
74 super(message, throwable);
  /frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
UiObjectNotFoundException.java 38 public UiObjectNotFoundException(String detailMessage, Throwable throwable) {
39 super(detailMessage, throwable);
45 public UiObjectNotFoundException(Throwable throwable) {
46 super(throwable);
  /libcore/luni/src/main/java/java/lang/
Error.java 26 * @see Throwable
30 public class Error extends Throwable {
57 * @param throwable
60 public Error(String detailMessage, Throwable throwable) {
61 super(detailMessage, throwable);
68 * @param throwable
71 public Error(Throwable throwable) {
72 super(throwable);
    [all...]
Exception.java 26 * @see Throwable
30 public class Exception extends Throwable {
56 * @param throwable
59 public Exception(String detailMessage, Throwable throwable) {
60 super(detailMessage, throwable);
67 * @param throwable
70 public Exception(Throwable throwable) {
71 super(throwable);
    [all...]
RuntimeException.java 55 * @param throwable
58 public RuntimeException(String detailMessage, Throwable throwable) {
59 super(detailMessage, throwable);
66 * @param throwable
69 public RuntimeException(Throwable throwable) {
70 super(throwable);
  /libcore/luni/src/test/java/libcore/java/lang/
ThrowableTest.java 28 public synchronized Throwable fillInStackTrace() {
41 private static class SuppressionsThrowable extends Throwable {
42 public SuppressionsThrowable(String detailMessage, Throwable throwable,
44 super(detailMessage, throwable, enableSuppression);
49 Throwable throwable = new Throwable(); local
50 assertSuppressed(throwable);
51 Throwable suppressedA = new Throwable()
60 Throwable throwable = new Throwable(); local
69 Throwable throwable = new Throwable(); local
81 Throwable throwable = new SuppressionsThrowable("foo", null, false); local
90 Throwable throwable = new Throwable(); local
99 Throwable throwable = new Throwable(); local
108 Throwable throwable = newThrowable("Throwable", "A", "B"); local
121 Throwable throwable = newThrowable("Throwable", "A", "B"); local
144 Throwable throwable = newThrowable("Throwable", "A", "B"); local
182 Throwable throwable = new Throwable(); local
206 Throwable throwable = newThrowable("Throwable", "A", "B"); local
234 Throwable throwable = newThrowable("Serialized", "A", "B"); local
249 Throwable throwable = new SuppressionsThrowable("foo", null, false); local
278 Throwable throwable = new SuppressionsThrowable("foo", null, true); local
    [all...]
  /external/mockito/src/org/mockito/internal/exceptions/
ExceptionIncludingMockitoWarnings.java 10 public ExceptionIncludingMockitoWarnings(String message, Throwable throwable) {
11 super(message, throwable);
  /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...]
  /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/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/mockito/src/org/mockito/internal/exceptions/stacktrace/
ConditionalStackTraceFilter.java 19 public void filter(Throwable throwable) {
23 StackTraceElement[] filtered = filter.filter(throwable.getStackTrace(), true);
24 throwable.setStackTrace(filtered);
  /external/guava/guava/src/com/google/common/util/concurrent/
SettableFuture.java 23 * or {@link #setException(Throwable)} call. It may also be cancelled.
63 * @param throwable the exception the future should hold.
67 public boolean setException(Throwable throwable) {
68 return super.setException(throwable);
  /frameworks/base/core/tests/coretests/src/android/animation/
FutureWaiter.java 24 * also exposes the protected {@link AbstractFuture#setException(Throwable)} method.
44 public boolean setException(Throwable throwable) {
45 return super.setException(throwable);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
AuthenticationFailedException.java 31 public AuthenticationFailedException(String message, Throwable throwable) {
32 super(MessagingException.AUTHENTICATION_FAILED, message, throwable);
CertificateValidationException.java 27 public CertificateValidationException(String message, Throwable throwable) {
28 super(MessagingException.CERTIFICATE_VALIDATION_ERROR, message, throwable);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
IllegalStateExceptionTest.java 46 * @tests {@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 * @tests {@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 * @tests {@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 * @tests {@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...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
InvalidPropertiesFormatExceptionTest.java 40 * @tests {@link java.util.InvalidPropertiesFormatException#InvalidPropertiesFormatException(Throwable)}
43 Throwable throwable = new Throwable(); local
45 throwable);
47 throwable, exception.getCause());
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/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;

Completed in 514 milliseconds

1 2 3 4 5 6 7 8