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

1234567891011>>

/libcore/luni/src/test/java/libcore/java/lang/
H A DArrayIndexOutOfBoundsExceptionTest.java27 } 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 DClassNotFoundExceptionTest.java27 } 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 DStringIndexOutOfBoundsExceptionTest.java26 } 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 DArrayStoreExceptionTest.java28 } 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 DOldAndroidMonitorTest.java39 } 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 DClassCastExceptionTest.java31 } 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 DCoderMalfunctionError.java35 * @param ex
38 public CoderMalfunctionError(Exception ex) { argument
39 super(ex);
/libcore/luni/src/main/java/java/security/
H A DPrivilegedActionException.java27 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 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/main/java/java/lang/
H A DClassNotFoundException.java27 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 DConnectionEvent.java33 private SQLException ex; field in class:ConnectionEvent
61 ex = theException;
72 return ex;
/libcore/luni/src/main/java/java/util/concurrent/
H A DForkJoinWorkerThread.java109 } catch (Throwable ex) {
110 exception = ex;
114 } catch (Throwable ex) {
116 exception = 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;

Completed in 403 milliseconds

1234567891011>>