Searched refs:ex (Results 1 - 25 of 446) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/lang/
H A DClassNotFoundException.java60 * This field holds the exception ex if the
61 * ClassNotFoundException(String s, Throwable ex) constructor was
66 private Throwable ex; field in class:ClassNotFoundException
91 * @param ex the exception that was raised while loading the class
94 public ClassNotFoundException(String s, Throwable ex) { argument
96 this.ex = ex;
111 return ex;
123 return ex;
/libcore/ojluni/src/main/java/javax/sql/
H A DConnectionEvent.java65 * @param ex the SQLException about to be thrown to the application
68 public ConnectionEvent(PooledConnection con, SQLException ex) { argument
70 this.ex = ex;
79 public SQLException getSQLException() { return ex; }
87 private SQLException ex = null; field in class:ConnectionEvent
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DIllegalCharsetNameExceptionTest.java33 IllegalCharsetNameException ex = new IllegalCharsetNameException(
35 assertTrue(ex instanceof IllegalArgumentException);
36 assertNull(ex.getCause());
37 assertEquals(ex.getCharsetName(), "impossible");
38 assertTrue(ex.getMessage().indexOf("impossible") != -1);
40 ex = new IllegalCharsetNameException("ascii");
41 assertNull(ex.getCause());
42 assertEquals(ex.getCharsetName(), "ascii");
43 assertTrue(ex.getMessage().indexOf("ascii") != -1);
45 ex
[all...]
H A DUnsupportedCharsetExceptionTest.java33 UnsupportedCharsetException ex = new UnsupportedCharsetException(
35 assertTrue(ex instanceof IllegalArgumentException);
36 assertNull(ex.getCause());
37 assertEquals(ex.getCharsetName(), "impossible");
38 assertTrue(ex.getMessage().indexOf("impossible") != -1);
40 ex = new UnsupportedCharsetException("ascii");
41 assertNull(ex.getCause());
42 assertEquals(ex.getCharsetName(), "ascii");
43 assertTrue(ex.getMessage().indexOf("ascii") != -1);
45 ex
[all...]
H A DMalformedInputExceptionTest.java34 MalformedInputException ex = new MalformedInputException(3);
35 assertTrue(ex instanceof CharacterCodingException);
36 assertNull(ex.getCause());
37 assertEquals(ex.getInputLength(), 3);
38 assertTrue(ex.getMessage().indexOf("3") != -1);
40 ex = new MalformedInputException(-3);
41 assertNull(ex.getCause());
42 assertEquals(ex.getInputLength(), -3);
43 assertTrue(ex.getMessage().indexOf("-3") != -1);
45 ex
[all...]
H A DUnmappableCharacterExceptionTest.java34 UnmappableCharacterException ex = new UnmappableCharacterException(3);
35 assertTrue(ex instanceof CharacterCodingException);
36 assertNull(ex.getCause());
37 assertEquals(ex.getInputLength(), 3);
38 assertTrue(ex.getMessage().indexOf("3") != -1);
40 ex = new UnmappableCharacterException(-3);
41 assertNull(ex.getCause());
42 assertEquals(ex.getInputLength(), -3);
43 assertTrue(ex.getMessage().indexOf("-3") != -1);
45 ex
[all...]
H A DCharacterCodingExceptionTest.java32 CharacterCodingException ex = new CharacterCodingException();
33 assertTrue(ex instanceof IOException);
34 assertNull(ex.getCause());
35 assertNull(ex.getMessage());
H A DCoderMalfunctionErrorTest.java34 Exception ex = new Exception();
35 CoderMalfunctionError e = new CoderMalfunctionError(ex);
36 assertSame(ex, e.getCause());
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldAndroidMonitorTest.java41 } catch (InterruptedException ex) {
43 ex);
44 } catch (Exception ex) {
46 "Object.wait() with good arguments", ex);
56 } catch (InterruptedException ex) {
57 throw new RuntimeException("bad Object.wait() interrupted", ex);
58 } catch (IllegalArgumentException ex) {
60 } catch (Exception ex) {
62 "Object.wait() with bad arguments", ex);
74 } catch (InterruptedException ex) {
[all...]
H A DClassCastExceptionTest.java31 } catch (ClassCastException ex) {
32 assertEquals("Cannot cast java.lang.Exception to java.lang.String", ex.getMessage());
40 } catch (ClassCastException ex) {
42 ex.getMessage());
54 } catch (ClassCastException ex) {
55 assertNotNull(ex.getMessage());
64 } catch (ClassCastException ex) {
65 assertNotNull(ex.getMessage());
75 } catch (ClassCastException ex) {
76 assertNotNull(ex
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DErrorManager.java80 * @param ex an exception (may be null)
83 public synchronized void error(String msg, Exception ex, int code) { argument
95 if (ex != null) {
96 ex.printStackTrace();
H A DStreamHandler.java79 } catch (Exception ex) {
137 } catch (UnsupportedEncodingException ex) {
140 throw new Error("Unexpected exception " + ex);
197 } catch (Exception ex) {
200 reportError(null, ex, ErrorManager.FORMAT_FAILURE);
210 } catch (Exception ex) {
213 reportError(null, ex, ErrorManager.WRITE_FAILURE);
243 } catch (Exception ex) {
246 reportError(null, ex, ErrorManager.FLUSH_FAILURE);
262 } catch (Exception ex) {
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DWriteAbortedException.java64 * @param ex Exception causing the abort.
66 public WriteAbortedException(String s, Exception ex) { argument
69 detail = ex;
/libcore/dom/src/test/java/org/w3c/domts/
H A DJUnitTestSuiteAdapter.java43 } catch(InvocationTargetException ex) {
44 throw ex.getTargetException();
58 catch(Throwable ex) {
59 if(!(ex instanceof DOMTestIncompatibleException)) {
60 ex.printStackTrace();
H A DBatikTestDocumentBuilderFactory.java64 } catch (Exception ex) {
65 throw new DOMTestIncompatibleException(ex, null);
97 } catch (InvocationTargetException ex) {
99 ex.getTargetException(),
101 } catch (Exception ex) {
102 throw new DOMTestIncompatibleException(ex, null);
136 } catch (InvocationTargetException ex) {
137 ex.printStackTrace();
138 throw new DOMTestLoadException(ex.getTargetException());
139 } catch (Exception ex) {
[all...]
H A DDOM4JTestDocumentBuilderFactory.java85 catch (InvocationTargetException ex) {
86 throw new DOMTestIncompatibleException(ex.getTargetException(), null);
88 catch (Exception ex) {
89 throw new DOMTestIncompatibleException(ex, null);
116 catch (InvocationTargetException ex) {
117 ex.getTargetException().printStackTrace();
118 throw new DOMTestLoadException(ex.getTargetException());
120 catch (Exception ex) {
121 ex.printStackTrace();
122 throw new DOMTestLoadException(ex);
[all...]
H A DDOMTestIncompatibleException.java35 public DOMTestIncompatibleException(Throwable ex, argument
37 if (ex != null) {
38 msg = ex.toString();
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldJarExceptionTest.java28 JarException ex = new JarException();
31 assertNotSame(ex, ex1);
32 assertNotSame(ex.getMessage(), ex1.getMessage());
33 assertNotSame(ex, ex2);
34 assertSame(ex.getMessage(), ex2.getMessage());
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DSAXParserFactoryImpl.java58 } catch (SAXNotRecognizedException ex) {
59 throw new AssertionError(ex);
67 } catch (SAXNotRecognizedException ex) {
68 throw new AssertionError(ex);
81 } catch (Exception ex) {
82 throw new ParserConfigurationException(ex.toString());
108 } catch (SAXNotRecognizedException ex) {
109 throw new AssertionError(ex);
117 } catch (SAXNotRecognizedException ex) {
118 throw new AssertionError(ex);
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A Delementsetattributens08.java78 } catch (DOMException ex) {
79 success = (ex.code == DOMException.NAMESPACE_ERR);
88 } catch (DOMException ex) {
89 success = (ex.code == DOMException.NAMESPACE_ERR);
H A Dnamednodemapremovenameditemns05.java90 } catch (DOMException ex) {
91 switch (ex.code) {
97 throw ex;
105 } catch (DOMException ex) {
106 switch (ex.code) {
112 throw ex;
H A Dhc_entitiesremovenameditemns1.java77 } catch (DOMException ex) {
78 switch (ex.code) {
84 throw ex;
H A Dhc_entitiessetnameditemns1.java79 } catch (DOMException ex) {
80 switch (ex.code) {
86 throw ex;
H A Dhc_notationsremovenameditemns1.java77 } catch (DOMException ex) {
78 switch (ex.code) {
84 throw ex;
H A Dhc_notationssetnameditemns1.java79 } catch (DOMException ex) {
80 switch (ex.code) {
86 throw ex;

Completed in 902 milliseconds

1234567891011>>