Home
last modified time | relevance | path

Searched refs:exceptions (Results 1 – 14 of 14) 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.java157 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()
DProxy.java636 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/
DParserAdapter.java481 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/
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/java/util/
DTimeZoneTest.java441 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/
Djvm.h723 unsigned short *exceptions);
/libcore/
DLICENSE237 write to the Free Software Foundation; we sometimes make exceptions for this.
/libcore/ojluni/
DNOTICE523 write to the Free Software Foundation; we sometimes make exceptions for this.