Home
last modified time | relevance | path

Searched refs:throwable (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DThrowableTest.java67 public SuppressionsThrowable(String detailMessage, Throwable throwable, in SuppressionsThrowable() argument
69 super(detailMessage, throwable, enableSuppression, writableStackTrace); in SuppressionsThrowable()
74 Throwable throwable = new Throwable(); in testAddSuppressed() local
75 assertSuppressed(throwable); in testAddSuppressed()
77 throwable.addSuppressed(suppressedA); in testAddSuppressed()
78 assertSuppressed(throwable, suppressedA); in testAddSuppressed()
80 throwable.addSuppressed(suppressedB); in testAddSuppressed()
81 assertSuppressed(throwable, suppressedA, suppressedB); in testAddSuppressed()
85 Throwable throwable = new Throwable(); in testAddDuplicateSuppressed() local
87 throwable.addSuppressed(suppressedA); in testAddDuplicateSuppressed()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DUndeclaredThrowableExceptionTests.java10 private static EOFException throwable = new EOFException(); field in UndeclaredThrowableExceptionTests
17 throwable); in test_getCause()
18 assertSame("Wrong cause returned", throwable, ute.getCause()); in test_getCause()
26 throwable); in test_getUndeclaredThrowable()
27 assertSame("Wrong undeclared throwable returned", throwable, ute in test_getUndeclaredThrowable()
36 throwable); in test_Constructor_Throwable()
37 assertEquals("Wrong cause returned", throwable, e.getCause()); in test_Constructor_Throwable()
38 assertEquals("Wrong throwable returned", throwable, e in test_Constructor_Throwable()
47 throwable, msg); in test_Constructor_Throwable_String()
48 assertEquals("Wrong cause returned", throwable, e.getCause()); in test_Constructor_Throwable_String()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DUnsupportedOperationExceptionTest.java56 Throwable throwable = new Exception("msg"); in test_ConstructorLjava_lang_Throwable() local
57 UnsupportedOperationException exception = new UnsupportedOperationException(throwable); in test_ConstructorLjava_lang_Throwable()
58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
59 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
60 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
74 Throwable throwable = new Exception("msg_exception"); in test_ConstructorLjava_lang_StringLjava_lang_Throwable() local
76 "msg", throwable); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
79 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
DIllegalStateExceptionTest.java55 Throwable throwable = new Exception("msg"); in test_ConstructorLjava_lang_Throwable() local
56 IllegalStateException exception = new IllegalStateException(throwable); in test_ConstructorLjava_lang_Throwable()
57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
58 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
59 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
72 Throwable throwable = new Exception("msg_exception"); in test_ConstructorLjava_lang_StringLjava_lang_Throwable() local
73 IllegalStateException exception = new IllegalStateException("msg", throwable); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
76 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
DRuntimeExceptionTest.java53 Throwable throwable = new Exception("msg"); in test_ConstructorLjava_lang_Throwable() local
54 RuntimeException exception = new RuntimeException(throwable); in test_ConstructorLjava_lang_Throwable()
55 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
56 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
57 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
/libcore/luni/src/main/java/java/lang/
DException.java59 public Exception(String detailMessage, Throwable throwable) { in Exception() argument
60 super(detailMessage, throwable); in Exception()
70 public Exception(Throwable throwable) { in Exception() argument
71 super(throwable); in Exception()
DError.java60 public Error(String detailMessage, Throwable throwable) { in Error() argument
61 super(detailMessage, throwable); in Error()
71 public Error(Throwable throwable) { in Error() argument
72 super(throwable); in Error()
DRuntimeException.java58 public RuntimeException(String detailMessage, Throwable throwable) { in RuntimeException() argument
59 super(detailMessage, throwable); in RuntimeException()
69 public RuntimeException(Throwable throwable) { in RuntimeException() argument
70 super(throwable); in RuntimeException()
DThrowable.java338 for (Throwable throwable : suppressedExceptions) { in printStackTrace()
341 throwable.printStackTrace(err, indent + "\t", stack); in printStackTrace()
375 public Throwable initCause(Throwable throwable) { in initCause() argument
379 if (throwable == this) { in initCause()
382 cause = throwable; in initCause()
405 public final void addSuppressed(Throwable throwable) { in addSuppressed() argument
406 if (throwable == this) { in addSuppressed()
409 if (throwable == null) { in addSuppressed()
418 suppressedExceptions.add(throwable); in addSuppressed()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DInvalidPropertiesFormatExceptionTest.java43 Throwable throwable = new Throwable(); in test_Constructor_Ljava_lang_Throwable() local
45 throwable); in test_Constructor_Ljava_lang_Throwable()
47 throwable, exception.getCause()); in test_Constructor_Ljava_lang_Throwable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DLoadLocaleProviderTestHelper.java24 private Throwable throwable; field in LoadLocaleProviderTestHelper
36 return throwable; in getThrowable()
43 throwable = t; in run()
/libcore/libart/src/main/java/java/lang/
DThread.java1087 public final synchronized void stop(Throwable throwable) { in stop() argument