Home
last modified time | relevance | path

Searched refs:exceptions (Results 1 – 17 of 17) sorted by relevance

/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java140 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/
DKeyFactoryTest.java65 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/
DConstructorTest.java27 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()
DGenericExceptionsTest.java80 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()
DMethodTest.java34 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/
DExecutable.java162 Type[] exceptions = getGenericExceptionTypes(); in sharedToGenericString() local
163 if (exceptions.length > 0) { in sharedToGenericString()
165 for (int k = 0; k < exceptions.length; k++) { in sharedToGenericString()
166 sb.append((exceptions[k] instanceof Class)? in sharedToGenericString()
167 ((Class)exceptions[k]).getName(): in sharedToGenericString()
168 exceptions[k].toString()); in sharedToGenericString()
169 if (k < (exceptions.length - 1)) in sharedToGenericString()
682 GenericInfo(ListOfTypes exceptions, ListOfTypes parameters, Type ret, in GenericInfo() argument
684 genericExceptionTypes = exceptions; in GenericInfo()
DProxy.java681 List<Class<?>[]> exceptions = deduplicateAndGetExceptions(methods); in apply() local
684 … Class<?>[][] exceptionsArray = exceptions.toArray(new Class<?>[exceptions.size()][]); in apply()
707 List<Class<?>[]> exceptions = new ArrayList<Class<?>[]>(methods.size()); in deduplicateAndGetExceptions() local
714 exceptions.set(i - 1, intersectExceptions(exceptions.get(i - 1), exceptionTypes)); in deduplicateAndGetExceptions()
717 exceptions.add(exceptionTypes); in deduplicateAndGetExceptions()
721 return exceptions; in deduplicateAndGetExceptions()
804 Class<?>[][] exceptions); in generateProxy() argument
/libcore/luni/src/main/java/org/xml/sax/helpers/
DParserAdapter.java485 ArrayList<SAXParseException> exceptions = null; in startElement() local
578 if (exceptions == null) { in startElement()
579 exceptions = new ArrayList<SAXParseException>(); in startElement()
581 exceptions.add((SAXParseException) e); in startElement()
587 if (exceptions != null && errorHandler != null) { in startElement()
588 for (SAXParseException ex : exceptions) { in startElement()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DConstructorTest.java204 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()
DProxyTest.java268 Class<?>[] exceptions = m.getExceptionTypes(); in test_ProxyClass_withParentAndSubInThrowList() local
270 for (Class<?> exp : exceptions) { in test_ProxyClass_withParentAndSubInThrowList()
/libcore/luni/src/test/java/libcore/dalvik/system/
DInMemoryDexClassLoaderTest.java434 ArrayList<IOException> exceptions = new ArrayList<>(); in testMakeInMemoryDexElements() local
438 exceptions); in testMakeInMemoryDexElements()
440 assertTrue(exceptions.isEmpty()); in testMakeInMemoryDexElements()
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DExecutable.java238 libcore.reflect.ListOfTypes exceptions, in GenericInfo() argument
DProxy.java82 java.lang.Class<?>[][] exceptions); in generateProxy() argument
/libcore/ojluni/src/main/native/
Djvm.h723 unsigned short *exceptions);
/libcore/
DLICENSE237 write to the Free Software Foundation; we sometimes make exceptions for this.
/libcore/expectations/
Dknownfailures.txt1500 description: "Conscrypt produces different exceptions under different circumstances",
/libcore/ojluni/
DNOTICE523 write to the Free Software Foundation; we sometimes make exceptions for this.