/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | ArrayIndexOutOfBoundsExceptionTest.java | 27 } catch (ArrayIndexOutOfBoundsException ex) { 28 assertEquals("length=1; index=2", ex.getMessage()); 37 } catch (ArrayIndexOutOfBoundsException ex) { 38 assertEquals("length=1; index=2", ex.getMessage()); 47 } catch (ArrayIndexOutOfBoundsException ex) { 48 assertEquals("length=1; index=2", ex.getMessage()); 57 } catch (ArrayIndexOutOfBoundsException ex) { 58 assertEquals("length=1; index=2", ex.getMessage()); 67 } catch (ArrayIndexOutOfBoundsException ex) { 68 assertEquals("length=1; index=2", ex [all...] |
H A D | ClassNotFoundExceptionTest.java | 27 } catch (ClassNotFoundException ex) { 28 assertEquals("[V", ex.getMessage()); 36 } catch (ClassNotFoundException ex) { 37 assertEquals("blort.Zorch", ex.getMessage()); 45 } catch (ClassNotFoundException ex) { 46 assertEquals("[[Lblort.Zorch;", ex.getMessage());
|
H A D | StringIndexOutOfBoundsExceptionTest.java | 26 } catch (StringIndexOutOfBoundsException ex) { 27 assertEquals("length=5; index=-1", ex.getMessage()); 33 } catch (StringIndexOutOfBoundsException ex) { 34 assertEquals("length=5; index=7", ex.getMessage()); 42 } catch (StringIndexOutOfBoundsException ex) { 44 ex.getMessage());
|
H A D | ArrayStoreExceptionTest.java | 28 } catch (ArrayStoreException ex) { 29 ex.printStackTrace(); 32 ex.getMessage()); 42 } catch (ArrayStoreException ex) { 45 ex.getMessage()); 55 } catch (ArrayStoreException ex) { 58 ex.getMessage()); 67 } catch (ArrayStoreException ex) { 68 ex.printStackTrace(); 71 ex [all...] |
H A D | OldAndroidMonitorTest.java | 39 } catch (InterruptedException ex) { 41 ex); 42 } catch (Exception ex) { 44 "Object.wait() with good arguments", ex); 54 } catch (InterruptedException ex) { 55 throw new RuntimeException("bad Object.wait() interrupted", ex); 56 } catch (IllegalArgumentException ex) { 58 } catch (Exception ex) { 60 "Object.wait() with bad arguments", ex); 72 } catch (InterruptedException ex) { [all...] |
H A D | ClassCastExceptionTest.java | 31 } catch (ClassCastException ex) { 32 assertEquals("java.lang.Exception cannot be cast to java.lang.String", ex.getMessage()); 41 } catch (ClassCastException ex) { 42 assertEquals("java.lang.Exception cannot be cast to java.lang.String", ex.getMessage()); 50 } catch (ClassCastException ex) { 52 ex.getMessage()); 60 } catch (ClassCastException ex) { 62 ex.getMessage()); 70 } catch (ClassCastException ex) { 73 ex [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | CoderMalfunctionError.java | 35 * @param ex 38 public CoderMalfunctionError(Exception ex) { argument 39 super(ex);
|
/libcore/luni/src/main/java/java/security/ |
H A D | PrivilegedActionException.java | 27 public PrivilegedActionException(Exception ex) { argument 28 super(ex);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
H A D | IllegalCharsetNameExceptionTest.java | 33 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 D | UnsupportedCharsetExceptionTest.java | 33 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 D | MalformedInputExceptionTest.java | 34 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 D | UnmappableCharacterExceptionTest.java | 34 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 D | CharacterCodingExceptionTest.java | 32 CharacterCodingException ex = new CharacterCodingException(); 33 assertTrue(ex instanceof IOException); 34 assertNull(ex.getCause()); 35 assertNull(ex.getMessage());
|
H A D | CoderMalfunctionErrorTest.java | 34 Exception ex = new Exception(); 35 CoderMalfunctionError e = new CoderMalfunctionError(ex); 36 assertSame(ex, e.getCause());
|
/libcore/luni/src/main/java/java/lang/ |
H A D | ClassNotFoundException.java | 27 private Throwable ex; field in class:ClassNotFoundException 60 ex = exception; 69 return ex; 80 return ex;
|
/libcore/luni/src/main/java/javax/sql/ |
H A D | ConnectionEvent.java | 33 private SQLException ex; field in class:ConnectionEvent 61 ex = theException; 72 return ex;
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ForkJoinWorkerThread.java | 109 } catch (Throwable ex) { 110 exception = ex; 114 } catch (Throwable ex) { 116 exception = ex;
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | JUnitTestSuiteAdapter.java | 43 } catch(InvocationTargetException ex) { 44 throw ex.getTargetException(); 58 catch(Throwable ex) { 59 if(!(ex instanceof DOMTestIncompatibleException)) { 60 ex.printStackTrace();
|
H A D | BatikTestDocumentBuilderFactory.java | 64 } 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 D | DOM4JTestDocumentBuilderFactory.java | 85 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 D | DOMTestIncompatibleException.java | 35 public DOMTestIncompatibleException(Throwable ex, argument 37 if (ex != null) { 38 msg = ex.toString();
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
H A D | OldJarExceptionTest.java | 28 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 D | SAXParserFactoryImpl.java | 58 } 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 D | elementsetattributens08.java | 78 } catch (DOMException ex) { 79 success = (ex.code == DOMException.NAMESPACE_ERR); 88 } catch (DOMException ex) { 89 success = (ex.code == DOMException.NAMESPACE_ERR);
|
H A D | namednodemapremovenameditemns05.java | 90 } catch (DOMException ex) { 91 switch (ex.code) { 97 throw ex; 105 } catch (DOMException ex) { 106 switch (ex.code) { 112 throw ex;
|