Home
last modified time | relevance | path

Searched refs:throwable (Results 1 – 15 of 15) 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/ojluni/src/main/native/
DThrowable.c50 Throwable_fillInStackTrace(JNIEnv *env, jobject throwable, int dummy) in Throwable_fillInStackTrace() argument
52 JVM_FillInStackTrace(env, throwable); in Throwable_fillInStackTrace()
53 return throwable; in Throwable_fillInStackTrace()
57 Throwable_getStackTraceDepth(JNIEnv *env, jobject throwable) in Throwable_getStackTraceDepth() argument
59 return JVM_GetStackTraceDepth(env, throwable); in Throwable_getStackTraceDepth()
64 jobject throwable, jint index) in Throwable_getStackTraceElement() argument
66 return JVM_GetStackTraceElement(env, throwable, index); in Throwable_getStackTraceElement()
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/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/lang/
DNoClassDefFoundError.java73 private NoClassDefFoundError(String detailMessage, Throwable throwable) { in NoClassDefFoundError() argument
74 super(detailMessage, throwable); in NoClassDefFoundError()
/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/dalvik/test-rules/src/main/java/dalvik/system/
DCloseGuardSupport.java112 } catch (Throwable throwable) { in apply()
115 thrown = throwable; in apply()
/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()