Home
last modified time | relevance | path

Searched refs:ParseException (Results 1 – 25 of 33) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DParseExceptionTest.java22 import java.text.ParseException;
35 } catch (ParseException e) { in test_ConstructorLjava_lang_StringI()
47 } catch (ParseException e) { in test_getErrorOffset()
58 assertTrue("Not a ParseException", object instanceof ParseException); in test_serialize()
59 ParseException parseException = (ParseException) object; in test_serialize()
DRuleBasedCollatorTest.java24 import java.text.ParseException;
42 public void testHashCode() throws ParseException { in testHashCode()
50 public void testClone() throws ParseException { in testClone()
59 public void testEqualsObject() throws ParseException { in testEqualsObject()
76 public void testCompareStringString() throws ParseException { in testCompareStringString()
94 public void testGetRules() throws ParseException { in testGetRules()
DCollationKeyTest.java21 import java.text.ParseException;
99 } catch (ParseException e) { in failing_test_toByteArray()
DCollatorTest.java20 import java.text.ParseException;
177 } catch (ParseException e) { in failing_test_getAvailableLocales()
190 } catch (ParseException e) { in failing_test_getDecomposition()
208 public void test_getStrength() throws ParseException { in test_getStrength()
DNumberFormatTest.java24 import java.text.ParseException;
120 public void test_getIntegerInstance() throws ParseException { in test_getIntegerInstance()
147 throws ParseException { in test_getIntegerInstanceLjava_util_Locale()
DSimpleDateFormatTest.java22 import java.text.ParseException;
645 } catch (ParseException expected) { in test_parse_h_z_2DigitOffsetFromGMT_doesNotParse()
651 } catch (ParseException expected) { in test_parse_h_z_2DigitOffsetFromGMT_doesNotParse()
665 } catch (ParseException expected) { in test_parse_h_z_4DigitOffsetFromGMT()
670 } catch (ParseException expected) { in test_parse_h_z_4DigitOffsetFromGMT()
847 } catch (ParseException e) { in test_set2DigitYearStartLjava_util_Date()
946 } catch (ParseException e) { in parse_whitespace_variants()
960 } catch (ParseException e) { in parse_whitespace_variants()
DMessageFormatTest.java33 import java.text.ParseException;
186 public void test_parseLjava_lang_String() throws ParseException { in test_parseLjava_lang_String()
206 } catch (java.text.ParseException expected) { in test_parseLjava_lang_String()
220 } catch (java.text.ParseException expected) { in test_parseLjava_lang_String()
926 public void test_parse() throws ParseException { in test_parse()
DDateFormatTest.java22 import java.text.ParseException;
461 } catch (ParseException e) { in test_parse_LString()
476 } catch (ParseException e) {} in test_setLenient()
/libcore/benchmarks/src/benchmarks/regression/
DSimpleDateFormatBenchmark.java21 import java.text.ParseException;
39 public void time_parseWithTimeZoneShort(int reps) throws ParseException { in time_parseWithTimeZoneShort()
46 public void time_parseWithTimeZoneLong(int reps) throws ParseException { in time_parseWithTimeZoneLong()
53 public void time_parseWithoutTimeZone(int reps) throws ParseException { in time_parseWithoutTimeZone()
60 public void time_createAndParseWithTimeZoneShort(int reps) throws ParseException { in time_createAndParseWithTimeZoneShort()
67 public void time_createAndParseWithTimeZoneLong(int reps) throws ParseException { in time_createAndParseWithTimeZoneLong()
92 public static void main(String[] args) throws ParseException { in main()
/libcore/ojluni/src/main/java/java/text/
DRuleBasedCollator.java284 public RuleBasedCollator(String rules) throws ParseException { in RuleBasedCollator()
292 if (e instanceof ParseException) { in RuleBasedCollator()
293 throw (ParseException) e; in RuleBasedCollator()
299 throw new ParseException(e.getMessage(), -1); in RuleBasedCollator()
DMergeCollation.java69 public MergeCollation(String pattern) throws ParseException in MergeCollation()
163 public void setPattern(String pattern) throws ParseException in setPattern()
173 public void addPattern(String pattern) throws ParseException in addPattern()
235 private final void fixEntry(PatternEntry newEntry) throws ParseException in fixEntry()
246 throw new ParseException("The entries " + lastEntry + " and " in fixEntry()
303 StringBuffer excessChars) throws ParseException in findLastEntry()
323 throw new ParseException("couldn't find last entry: " in findLastEntry()
338 throw new ParseException("couldn't find: " + entry, i); in findLastEntry()
DParseException.java50 class ParseException extends Exception { class
62 public ParseException(String s, int errorOffset) { in ParseException() method in ParseException
DPatternEntry.java207 public PatternEntry next() throws ParseException { in next()
252 throw new ParseException in next()
260 throw new ParseException in next()
274 throw new ParseException in next()
DFormat.java241 public Object parseObject(String source) throws ParseException { in parseObject()
245 throw new ParseException("Format.parseObject(String) failed", in parseObject()
DDateFormat.java357 public Date parse(String source) throws ParseException in parse()
362 throw new ParseException("Unparseable date: \"" + source + "\"" , in parse()
DNumberFormat.java371 public Number parse(String source) throws ParseException { in parse()
375 throw new ParseException("Unparseable number: \"" + source + "\"", in parse()
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java21 import java.text.ParseException;
218 } catch (ParseException pe) { in test_parseLString()
233 } catch(ParseException pe) { in test_parseLString()
240 } catch(ParseException pe) { in test_parseLString()
246 } catch(ParseException pe) { in test_parseLString()
252 } catch(ParseException pe) { in test_parseLString()
266 } catch(ParseException pe) { in test_parseLString()
273 } catch(ParseException pe) { in test_parseLString()
280 } catch(ParseException pe) { in test_parseLString()
294 } catch(ParseException pe) { in test_parseLString()
[all …]
DOldFormatTest.java23 import java.text.ParseException;
91 } catch (ParseException e) { in test_parseObjectLjava_lang_String()
DOldCollationKeyTest.java21 import java.text.ParseException;
27 public void test_toByteArray() throws ParseException { in test_toByteArray()
DOldNumberFormatTest.java23 import java.text.ParseException;
31 public void test_getIntegerInstanceLjava_util_Locale() throws ParseException { in test_getIntegerInstanceLjava_util_Locale()
746 } catch (java.text.ParseException pe) { in test_parseLjava_lang_String()
754 } catch (java.text.ParseException pe) { in test_parseLjava_lang_String()
761 } catch (java.text.ParseException pe) { in test_parseLjava_lang_String()
770 } catch (java.text.ParseException pe) { in test_parseLjava_lang_String()
779 } catch (java.text.ParseException pe) { in test_parseLjava_lang_String()
787 } catch (java.text.ParseException pe) { in test_parseLjava_lang_String()
796 } catch (java.text.ParseException pe) { in test_parseLjava_lang_String()
DCollatorTest.java22 import java.text.ParseException;
99 public void testEqualsObject() throws ParseException { in testEqualsObject()
/libcore/luni/src/main/java/libcore/net/http/
DHttpDate.java21 import java.text.ParseException;
76 } catch (ParseException ignore) { in parse()
81 } catch (ParseException ignore) { in parse()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatParser.java383 throw new ParseException("No input specified.", locator); in parseExternalEntity()
419 throw new ParseException(e.getMessage(), this.locator); in append()
441 throw new ParseException(e.getMessage(), this.locator); in append()
474 throw new ParseException(e.getMessage(), this.locator); in append()
512 throw new ParseException(e.getMessage(), locator); in parseFragment()
528 throw new ParseException(e.getMessage(), this.locator); in parseFragment()
559 throw new ParseException(e.getMessage(), this.locator); in finish()
743 private static class ParseException extends SAXParseException { class in ExpatParser
745 private ParseException(String message, Locator locator) { in ParseException() method in ExpatParser.ParseException
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java77 import java.text.ParseException;
2121 public Object parseObject(String text) throws ParseException { in parseObject()
2129 throw new ParseException(ex.getMessage(), ex.getErrorIndex()); in parseObject()
2131 throw (ParseException) new ParseException(ex.getMessage(), 0).initCause(ex); in parseObject()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java74 import java.text.ParseException;
788 @Test(expectedExceptions=ParseException.class)
794 } catch (ParseException ex) { in test_toFormat_parseObject_String_parseError()
801 @Test(expectedExceptions=ParseException.class)
898 @Test(expectedExceptions=ParseException.class)

12