/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserFactory.java | 140 ArrayList<Exception> exceptions = null; in getParserInstance() local 143 exceptions = new ArrayList<Exception>(); in getParserInstance() 151 exceptions.add(e); in getParserInstance() 153 exceptions.add(e); in getParserInstance() 155 exceptions.add(e); in getParserInstance() 160 throw newInstantiationException("Invalid parser class list", exceptions); in getParserInstance() 164 ArrayList<Exception> exceptions = null; in getSerializerInstance() local 167 exceptions = new ArrayList<Exception>(); in getSerializerInstance() 175 exceptions.add(e); in getSerializerInstance() 177 exceptions.add(e); in getSerializerInstance() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyFactoryTest.java | 65 Class[] exceptions = { in testGetInstanceString() local 77 checkException(message, e, exceptions[i]); in testGetInstanceString() 79 checkException(message, null, exceptions[i]); in testGetInstanceString() 105 Class[] exceptions = { in testGetInstanceStringString() local 121 checkException(message, e, exceptions[i]); in testGetInstanceStringString() 123 checkException(message, null, exceptions[i]); in testGetInstanceStringString() 151 Class[] exceptions = { in testGetInstanceStringProvider() local 169 checkException(message, e, exceptions[i]); in testGetInstanceStringProvider() 171 checkException(message, null, exceptions[i]); in testGetInstanceStringProvider() 204 Class[] exceptions = { in testGeneratePublic() local [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ConstructorTest.java | 27 Class[] exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes() local 28 assertEquals(1, exceptions.length); in test_getExceptionTypes() 29 assertEquals(IndexOutOfBoundsException.class, exceptions[0]); in test_getExceptionTypes() 31 exceptions[0] = NullPointerException.class; in test_getExceptionTypes() 32 exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes() 33 assertEquals(1, exceptions.length); in test_getExceptionTypes() 34 assertEquals(IndexOutOfBoundsException.class, exceptions[0]); in test_getExceptionTypes()
|
D | GenericExceptionsTest.java | 80 Type[] exceptions = method.getGenericExceptionTypes(); in testThrowingMethodThrowsEverything() local 81 TypeVariable t = (TypeVariable) exceptions[0]; in testThrowingMethodThrowsEverything() 82 assertEquals(3, exceptions.length); in testThrowingMethodThrowsEverything() 85 assertEquals(Exception.class, exceptions[1]); in testThrowingMethodThrowsEverything() 86 TypeVariable x = (TypeVariable) exceptions[2]; in testThrowingMethodThrowsEverything()
|
D | MethodTest.java | 34 Class[] exceptions = method.getExceptionTypes(); in test_getExceptionTypes() local 35 assertEquals(1, exceptions.length); in test_getExceptionTypes() 36 assertEquals(IndexOutOfBoundsException.class, exceptions[0]); in test_getExceptionTypes() 38 exceptions[0] = NullPointerException.class; in test_getExceptionTypes() 39 exceptions = method.getExceptionTypes(); in test_getExceptionTypes() 40 assertEquals(1, exceptions.length); in test_getExceptionTypes() 41 assertEquals(IndexOutOfBoundsException.class, exceptions[0]); in test_getExceptionTypes()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Executable.java | 157 Type[] exceptions = getGenericExceptionTypes(); in sharedToGenericString() local 158 if (exceptions.length > 0) { in sharedToGenericString() 160 for (int k = 0; k < exceptions.length; k++) { in sharedToGenericString() 161 sb.append((exceptions[k] instanceof Class)? in sharedToGenericString() 162 ((Class)exceptions[k]).getName(): in sharedToGenericString() 163 exceptions[k].toString()); in sharedToGenericString() 164 if (k < (exceptions.length - 1)) in sharedToGenericString() 674 GenericInfo(ListOfTypes exceptions, ListOfTypes parameters, Type ret, in GenericInfo() argument 676 genericExceptionTypes = exceptions; in GenericInfo()
|
D | Proxy.java | 636 List<Class<?>[]> exceptions = deduplicateAndGetExceptions(methods); in apply() local 639 … Class<?>[][] exceptionsArray = exceptions.toArray(new Class<?>[exceptions.size()][]); in apply() 662 List<Class<?>[]> exceptions = new ArrayList<Class<?>[]>(methods.size()); in deduplicateAndGetExceptions() local 669 exceptions.set(i - 1, intersectExceptions(exceptions.get(i - 1), exceptionTypes)); in deduplicateAndGetExceptions() 672 exceptions.add(exceptionTypes); in deduplicateAndGetExceptions() 676 return exceptions; in deduplicateAndGetExceptions() 919 Class<?>[][] exceptions); in generateProxy() argument
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | ParserAdapter.java | 481 ArrayList<SAXParseException> exceptions = null; in startElement() local 574 if (exceptions == null) { in startElement() 575 exceptions = new ArrayList<SAXParseException>(); in startElement() 577 exceptions.add((SAXParseException) e); in startElement() 583 if (exceptions != null && errorHandler != null) { in startElement() 584 for (SAXParseException ex : exceptions) { in startElement()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ConstructorTest.java | 204 Class[] exceptions = null; in test_getExceptionTypes() local 209 exceptions = ctor.getExceptionTypes(); in test_getExceptionTypes() 215 1, exceptions.length); in test_getExceptionTypes() 216 assertTrue("Returned incorrect exception", exceptions[0].equals(ex)); in test_getExceptionTypes()
|
D | ProxyTest.java | 268 Class<?>[] exceptions = m.getExceptionTypes(); in test_ProxyClass_withParentAndSubInThrowList() local 270 for (Class<?> exp : exceptions) { in test_ProxyClass_withParentAndSubInThrowList()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 441 List<Throwable> exceptions = Collections.synchronizedList(new ArrayList<>()); in testSetDefaultRace() local 442 Thread.UncaughtExceptionHandler handler = (t, e) -> exceptions.add(e); in testSetDefaultRace() 473 if (!exceptions.isEmpty()) { in testSetDefaultRace() 474 Throwable firstException = exceptions.get(0); in testSetDefaultRace()
|
/libcore/ojluni/src/main/native/ |
D | jvm.h | 723 unsigned short *exceptions);
|
/libcore/ |
D | LICENSE | 237 write to the Free Software Foundation; we sometimes make exceptions for this.
|
/libcore/ojluni/ |
D | NOTICE | 523 write to the Free Software Foundation; we sometimes make exceptions for this.
|