Home
last modified time | relevance | path

Searched refs:Throwable (Results 1 – 25 of 1139) sorted by relevance

12345678910>>...46

/libcore/dom/src/test/java/org/w3c/domts/
DJunitTestCases.java27 private void runDomTest(String name) throws Throwable { in runDomTest()
33 public void test_level1_core_attrcreatedocumentfragment() throws Throwable { in test_level1_core_attrcreatedocumentfragment()
37 public void test_level1_core_attrcreatetextnode() throws Throwable { in test_level1_core_attrcreatetextnode()
41 public void test_level1_core_attrcreatetextnode2() throws Throwable { in test_level1_core_attrcreatetextnode2()
45 public void test_level1_core_attreffectivevalue() throws Throwable { in test_level1_core_attreffectivevalue()
49 public void test_level1_core_attrname() throws Throwable { in test_level1_core_attrname()
53 public void test_level1_core_attrnextsiblingnull() throws Throwable { in test_level1_core_attrnextsiblingnull()
57 public void test_level1_core_attrparentnodenull() throws Throwable { in test_level1_core_attrparentnodenull()
61 public void test_level1_core_attrprevioussiblingnull() throws Throwable { in test_level1_core_attrprevioussiblingnull()
65 public void test_level1_core_attrspecifiedvalue() throws Throwable { in test_level1_core_attrspecifiedvalue()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DThrowableTest.java37 public synchronized Throwable fillInStackTrace() { in fillInStackTrace()
54 } catch (Throwable th) { in testNonWritableStackTrace()
73 private static class SuppressionsThrowable extends Throwable {
76 public SuppressionsThrowable(String detailMessage, Throwable throwable, in SuppressionsThrowable()
83 Throwable throwable = new Throwable(); in testAddSuppressed()
85 Throwable suppressedA = new Throwable(); in testAddSuppressed()
88 Throwable suppressedB = new Throwable(); in testAddSuppressed()
94 Throwable throwable = new Throwable(); in testAddDuplicateSuppressed()
95 Throwable suppressedA = new Throwable(); in testAddDuplicateSuppressed()
103 Throwable throwable = new Throwable(); in testGetSuppressedReturnsCopy()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThrowable.java32 public class Throwable implements java.io.Serializable { class
34 public Throwable() { in Throwable() method in Throwable
38 public Throwable(java.lang.String message) { in Throwable() method in Throwable
42 public Throwable(java.lang.String message, java.lang.Throwable cause) { in Throwable() method in Throwable
46 public Throwable(java.lang.Throwable cause) { in Throwable() method in Throwable
50 protected Throwable( in Throwable() method in Throwable
52 java.lang.Throwable cause, in Throwable()
66 public synchronized java.lang.Throwable getCause() { in getCause()
70 public synchronized java.lang.Throwable initCause(java.lang.Throwable cause) { in initCause()
87 private void printStackTrace(java.lang.Throwable.PrintStreamOrWriter s) { in printStackTrace()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThrowable.annotated.java34 public class Throwable implements java.io.Serializable { class
36 public Throwable() { throw new RuntimeException("Stub!"); } in Throwable() method in Throwable
38 public Throwable(@libcore.util.Nullable java.lang.String message) { throw new RuntimeException("Stu… in Throwable() method in Throwable
40 public Throwable(@libcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.lang. in Throwable() method in Throwable
42 public Throwable(@libcore.util.Nullable java.lang.Throwable cause) { throw new RuntimeException("St… in Throwable() method in Throwable
44 protected Throwable(@libcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.la… in Throwable() method in Throwable
50 @libcore.util.Nullable public synchronized java.lang.Throwable getCause() { throw new RuntimeExcept… in getCause()
52 …e.util.NonNull public synchronized java.lang.Throwable initCause(@libcore.util.Nullable java.lang. in initCause()
62 @libcore.util.NonNull public synchronized java.lang.Throwable fillInStackTrace() { throw new Runtim… in fillInStackTrace()
68 public final synchronized void addSuppressed(@libcore.util.NonNull java.lang.Throwable exception) {… in addSuppressed()
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DInvocationTargetException.java56 private Throwable target;
63 super((Throwable)null); // Disallow initCause in InvocationTargetException()
71 public InvocationTargetException(Throwable target) { in InvocationTargetException()
72 super((Throwable)null); // Disallow initCause in InvocationTargetException()
83 public InvocationTargetException(Throwable target, String s) { in InvocationTargetException()
97 public Throwable getTargetException() { in getTargetException()
108 public Throwable getCause() { in getCause()
DUndeclaredThrowableException.java65 private Throwable undeclaredThrowable;
74 public UndeclaredThrowableException(Throwable undeclaredThrowable) { in UndeclaredThrowableException()
75 super((Throwable) null); // Disallow initCause in UndeclaredThrowableException()
87 public UndeclaredThrowableException(Throwable undeclaredThrowable, in UndeclaredThrowableException()
104 public Throwable getUndeclaredThrowable() { in getUndeclaredThrowable()
116 public Throwable getCause() { in getCause()
/libcore/dalvik/src/test/java/libcore/dalvik/system/
DCloseGuardTest.java40 public void evaluate() throws Throwable { in preserveEnabledState()
52 public void testEnabled_NotOpen() throws Throwable {
59 public void testEnabled_OpenNotClosed() throws Throwable {
67 public void testEnabled_OpenWithCallsiteNotClosed() throws Throwable {
75 public void testEnabled_OpenThenClosed() throws Throwable {
84 public void testEnabled_OpenWithCallsiteThenClosed() throws Throwable {
93 public void testEnabledWhenCreated_DisabledWhenOpen() throws Throwable {
105 public void testEnabledWhenOpened_DisabledWhenFinalized() throws Throwable {
116 public void testDisabled_NotOpen() throws Throwable {
123 public void testDisabled_OpenNotClosed() throws Throwable {
[all …]
/libcore/ojluni/src/main/java/java/lang/
DClassNotFoundException.java66 private Throwable ex;
72 super((Throwable)null); // Disallow initCause in ClassNotFoundException()
94 public ClassNotFoundException(String s, Throwable ex) { in ClassNotFoundException()
110 public Throwable getException() { in getException()
122 public Throwable getCause() { in getCause()
DExceptionInInitializerError.java58 private Throwable exception;
78 public ExceptionInInitializerError(Throwable thrown) { in ExceptionInInitializerError()
111 public Throwable getException() { in getException()
123 public Throwable getCause() { in getCause()
DError.java49 public class Error extends Throwable {
87 public Error(String message, Throwable cause) { in Error()
104 public Error(Throwable cause) { in Error()
123 protected Error(String message, Throwable cause, in Error()
DException.java45 public class Exception extends Throwable {
83 public Exception(String message, Throwable cause) { in Exception()
101 public Exception(Throwable cause) { in Exception()
119 protected Exception(String message, Throwable cause, in Exception()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DIOExceptionTest.java63 "A fake IOException", new Throwable("A fake Throwable")); //$NON-NLS-1$//$NON-NLS-2$ in test_ConstructorLString_LThrowable()
68 … "A fake error", new Throwable("Some error message")); //$NON-NLS-1$ //$NON-NLS-2$ in test_ConstructorLString_LThrowable()
83 Throwable cause = new Throwable("A fake Throwable"); //$NON-NLS-1$ in test_Constructor_LThrowable()
87 ioException = new IOException((Throwable) null); in test_Constructor_LThrowable()
91 throw new IOException(new Throwable("Some error message")); //$NON-NLS-1$ in test_Constructor_LThrowable()
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/
DCloseGuardSupport.java102 public void evaluate() throws Throwable { in apply()
108 Throwable thrown = null; in apply()
114 } catch (Throwable throwable) { in apply()
123 Collection<Throwable> allocationSites = in apply()
130 for (Throwable allocationSite : allocationSites) { in apply()
156 private final Set<Throwable> allocationSites =
162 public void open(Throwable allocationSite) {
169 public void close(Throwable allocationSite) {
179 Collection<Throwable> getAllocationSitesForUnreleasedResources() {
263 private final List<Throwable> unreleasedResourceAllocationSites = new ArrayList<>();
[all …]
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeConfigurationException.java42 private Throwable causeOnJDK13OrBelow;
74 public DatatypeConfigurationException(String message, Throwable cause) { in DatatypeConfigurationException()
86 public DatatypeConfigurationException(Throwable cause) { in DatatypeConfigurationException()
141 private void initCauseByReflection(Throwable cause) { in initCauseByReflection()
144 Method m = this.getClass().getMethod("initCause", new Class[] {Throwable.class}); in initCauseByReflection()
157 Throwable cause = (Throwable) m1.invoke(this, new Object[] {}); in readObject()
162 Method m2 = this.getClass().getMethod("initCause", new Class[] {Throwable.class}); in readObject()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThrowableTest.java31 Throwable e = new Throwable(); in test_Constructor()
41 Throwable e = new Throwable("fixture"); in test_ConstructorLjava_lang_String()
79 } catch (Throwable e) { in test_fillInStackTrace()
88 } catch (Throwable e) { in test_fillInStackTrace()
129 Throwable x = new ClassNotFoundException("A Test Message"); in test_printStackTrace()
150 Throwable x = new java.net.UnknownHostException("A Message"); in test_printStackTraceLjava_io_PrintStream()
167 Throwable x = new java.net.UnknownHostException("A Message"); in test_printStackTraceLjava_io_PrintWriter()
179 Throwable e = new Throwable("Throw"); in test_toString()
/libcore/ojluni/src/main/java/java/sql/
DSQLException.java54 implements Iterable<Throwable> {
164 public SQLException(Throwable cause) { in SQLException()
186 public SQLException(String reason, Throwable cause) { in SQLException()
209 public SQLException(String reason, String sqlState, Throwable cause) { in SQLException()
235 public SQLException(String reason, String sqlState, int vendorCode, Throwable cause) { in SQLException()
314 public Iterator<Throwable> iterator() { in iterator()
316 return new Iterator<Throwable>() { in iterator()
320 Throwable cause = firstException.getCause(); in iterator()
328 public Throwable next() { in iterator()
329 Throwable throwable = null; in iterator()
DSQLTimeoutException.java117 public SQLTimeoutException(Throwable cause) { in SQLTimeoutException()
133 public SQLTimeoutException(String reason, Throwable cause) { in SQLTimeoutException()
149 public SQLTimeoutException(String reason, String SQLState, Throwable cause) { in SQLTimeoutException()
166 public SQLTimeoutException(String reason, String SQLState, int vendorCode, Throwable cause) { in SQLTimeoutException()
DSQLFeatureNotSupportedException.java125 public SQLFeatureNotSupportedException(Throwable cause) { in SQLFeatureNotSupportedException()
141 public SQLFeatureNotSupportedException(String reason, Throwable cause) { in SQLFeatureNotSupportedException()
157 public SQLFeatureNotSupportedException(String reason, String SQLState, Throwable cause) { in SQLFeatureNotSupportedException()
174 … SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode, Throwable cause) { in SQLFeatureNotSupportedException()
DSQLInvalidAuthorizationSpecException.java120 public SQLInvalidAuthorizationSpecException(Throwable cause) { in SQLInvalidAuthorizationSpecException()
136 public SQLInvalidAuthorizationSpecException(String reason, Throwable cause) { in SQLInvalidAuthorizationSpecException()
152 public SQLInvalidAuthorizationSpecException(String reason, String SQLState, Throwable cause) { in SQLInvalidAuthorizationSpecException()
169 …nvalidAuthorizationSpecException(String reason, String SQLState, int vendorCode, Throwable cause) { in SQLInvalidAuthorizationSpecException()
DSQLIntegrityConstraintViolationException.java120 public SQLIntegrityConstraintViolationException(Throwable cause) { in SQLIntegrityConstraintViolationException()
136 public SQLIntegrityConstraintViolationException(String reason, Throwable cause) { in SQLIntegrityConstraintViolationException()
152 … public SQLIntegrityConstraintViolationException(String reason, String SQLState, Throwable cause) { in SQLIntegrityConstraintViolationException()
169 …rityConstraintViolationException(String reason, String SQLState, int vendorCode, Throwable cause) { in SQLIntegrityConstraintViolationException()
DSQLDataException.java122 public SQLDataException(Throwable cause) { in SQLDataException()
137 public SQLDataException(String reason, Throwable cause) { in SQLDataException()
152 public SQLDataException(String reason, String SQLState, Throwable cause) { in SQLDataException()
168 public SQLDataException(String reason, String SQLState, int vendorCode, Throwable cause) { in SQLDataException()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerException.java55 Throwable containedException;
63 public Throwable getException() { in getException()
72 public Throwable getCause() { in getCause()
103 public synchronized Throwable initCause(Throwable cause) { in initCause()
137 public TransformerException(Throwable e) { in TransformerException()
155 public TransformerException(String message, Throwable e) { in TransformerException()
192 Throwable e) { in TransformerException()
314 } catch (Throwable e) {} in printStackTrace()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DIsSupported.java57 public void testIsSupported1() throws Throwable { in testIsSupported1()
66 public void testIsSupported2() throws Throwable { in testIsSupported2()
75 public void testIsSupported4() throws Throwable { in testIsSupported4()
84 public void testIsSupported5() throws Throwable { in testIsSupported5()
93 public void testIsSupported6() throws Throwable { in testIsSupported6()
102 public void testIsSupported7() throws Throwable { in testIsSupported7()
111 public void testIsSupported9() throws Throwable { in testIsSupported9()
120 public void testIsSupported10() throws Throwable { in testIsSupported10()
129 public void testIsSupported11() throws Throwable { in testIsSupported11()
139 public void testIsSupported12() throws Throwable { in testIsSupported12()
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DCancellable.java46 private Throwable exception;
86 private Throwable exception() { in exception()
96 } catch (Throwable t) { in run()
112 abstract void implRun() throws Throwable; in implRun()
133 Throwable exc = task.exception(); in runInterruptibly()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandle.java32 public final Object invokeExact(Object... args) throws Throwable { return null; } in invokeExact()
34 public final Object invoke(Object... args) throws Throwable { return null; } in invoke()
36 public Object invokeWithArguments(Object... arguments) throws Throwable { return null; } in invokeWithArguments()
38 public Object invokeWithArguments(java.util.List<?> arguments) throws Throwable { return null; } in invokeWithArguments()

12345678910>>...46