/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParseExceptionTest.java | 22 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()
|
D | RuleBasedCollatorTest.java | 24 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()
|
D | CollatorTest.java | 20 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()
|
D | CollationKeyTest.java | 21 import java.text.ParseException; 99 } catch (ParseException e) { in failing_test_toByteArray()
|
D | NumberFormatTest.java | 24 import java.text.ParseException; 120 public void test_getIntegerInstance() throws ParseException { in test_getIntegerInstance() 147 throws ParseException { in test_getIntegerInstanceLjava_util_Locale()
|
D | SimpleDateFormatTest.java | 22 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()
|
D | MessageFormatTest.java | 33 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()
|
D | DateFormatTest.java | 22 import java.text.ParseException; 461 } catch (ParseException e) { in test_parse_LString() 476 } catch (ParseException e) {} in test_setLenient()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SimpleDateFormatBenchmark.java | 21 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/luni/src/test/java/libcore/java/text/ |
D | OldDateFormatTest.java | 21 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 …]
|
D | OldFormatTest.java | 23 import java.text.ParseException; 91 } catch (ParseException e) { in test_parseObjectLjava_lang_String()
|
D | OldCollationKeyTest.java | 21 import java.text.ParseException; 27 public void test_toByteArray() throws ParseException { in test_toByteArray()
|
D | OldNumberFormatTest.java | 23 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()
|
D | CollatorTest.java | 22 import java.text.ParseException; 99 public void testEqualsObject() throws ParseException { in testEqualsObject()
|
D | SimpleDateFormatTest.java | 22 import java.text.ParseException; 483 } catch (ParseException expected) { in testLenientParsingForZ() 492 } catch (ParseException expected) { in testLenientParsingForZ() 504 public void testZoneStringsUsedForParsingWhenPresent() throws ParseException { in testZoneStringsUsedForParsingWhenPresent() 518 public void testTimeZoneFormattingRespectsSetZoneStrings() throws ParseException { in testTimeZoneFormattingRespectsSetZoneStrings() 835 } catch (ParseException e) { in checkMatchStringSortedMap_formatParseCzechJuly() 903 } catch (ParseException expected) { in checkParseNarrowFormat_throws()
|
/libcore/ojluni/src/main/java/java/text/ |
D | RuleBasedCollator.java | 284 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()
|
D | MergeCollation.java | 69 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()
|
D | ParseException.java | 50 class ParseException extends Exception { class 62 public ParseException(String s, int errorOffset) { in ParseException() method in ParseException
|
D | PatternEntry.java | 207 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()
|
D | Format.java | 241 public Object parseObject(String source) throws ParseException { in parseObject() 245 throw new ParseException("Format.parseObject(String) failed", in parseObject()
|
D | DateFormat.java | 357 public Date parse(String source) throws ParseException in parse() 362 throw new ParseException("Unparseable date: \"" + source + "\"" , in parse()
|
D | NumberFormat.java | 371 public Number parse(String source) throws ParseException { in parse() 375 throw new ParseException("Unparseable number: \"" + source + "\"", in parse()
|
/libcore/luni/src/main/java/libcore/net/http/ |
D | HttpDate.java | 21 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/ |
D | ExpatParser.java | 383 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/ |
D | DateTimeFormatter.java | 77 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()
|