Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/lang/
DThrowableTest.java76 public SuppressionsThrowable(String detailMessage, Throwable throwable, in SuppressionsThrowable() argument
78 super(detailMessage, throwable, enableSuppression, writableStackTrace); in SuppressionsThrowable()
83 Throwable throwable = new Throwable(); in testAddSuppressed() local
84 assertSuppressed(throwable); in testAddSuppressed()
86 throwable.addSuppressed(suppressedA); in testAddSuppressed()
87 assertSuppressed(throwable, suppressedA); in testAddSuppressed()
89 throwable.addSuppressed(suppressedB); in testAddSuppressed()
90 assertSuppressed(throwable, suppressedA, suppressedB); in testAddSuppressed()
94 Throwable throwable = new Throwable(); in testAddDuplicateSuppressed() local
96 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/
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()
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()
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/ojluni/src/main/java/sun/security/provider/certpath/
DVertex.java54 private Throwable throwable; field in Vertex
105 return throwable; in getThrowable()
114 void setThrowable(Throwable throwable) { in setThrowable() argument
115 this.throwable = throwable; in setThrowable()
204 if (throwable != null) in throwableToString()
205 sb.append(throwable.toString()); in throwableToString()
DBuildStep.java43 private Throwable throwable; field in BuildStep
88 throwable = vertex.getThrowable(); in BuildStep()
169 return throwable; in getThrowable()
/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/ojluni/src/main/java/java/util/logging/
DSimpleFormatter.java152 String throwable = ""; in format() local
159 throwable = sw.toString(); in format()
167 throwable); in format()
/libcore/ojluni/src/main/java/java/sql/
DSQLException.java329 Throwable throwable = null; in iterator() local
331 throwable = firstException; in iterator()
335 throwable = cause; in iterator()
339 throwable = nextException; in iterator()
345 return throwable; in iterator()
/libcore/ojluni/src/main/java/java/lang/
DNoClassDefFoundError.java74 private NoClassDefFoundError(String detailMessage, Throwable throwable) { in NoClassDefFoundError() argument
75 super(detailMessage, throwable); in NoClassDefFoundError()
/libcore/ojluni/src/main/java/java/util/concurrent/
DFlow.java250 public void onError(Throwable throwable); in onError() argument
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java524 String throwable = ""; in format() local
531 throwable = sw.toString(); in format()
540 throwable); in format()
549 Throwable throwable = new Throwable(); in getCallerInfo() local
563 for (StackTraceElement frame : throwable.getStackTrace()) { in getCallerInfo()
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/
DCloseGuardSupport.java114 } catch (Throwable throwable) { in apply()
117 thrown = throwable; in apply()
/libcore/ojluni/src/main/native/
Djvm.h193 JVM_FillInStackTrace(JNIEnv *env, jobject throwable);
196 JVM_PrintStackTrace(JNIEnv *env, jobject throwable, jobject printable);
199 JVM_GetStackTraceDepth(JNIEnv *env, jobject throwable);
202 JVM_GetStackTraceElement(JNIEnv *env, jobject throwable, jint index);
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java1320 private String printStackTraceToString(Throwable throwable) { in printStackTraceToString() argument
1322 throwable.printStackTrace(new PrintWriter(writer)); in printStackTraceToString()