Java 8 DateTimeParseException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 DateTimeParseException class.

This code example shows how to use the following methods:
            try { 
                long seconds = Long.parseLong(matcher.group(1));
                long nanos = Long.parseLong(matcher.group(2));
                return TaiInstant.ofTaiSeconds(seconds, nanos);
            } catch (NumberFormatException ex) {
                throw new DateTimeParseException("The text could not be parsed", text, 0, ex);
            } 
        } 
        throw new DateTimeParseException("The text could not be parsed", text, 0);
    } 
 
    //----------------------------------------------------------------------- 
    /** 
     * Constructs an instance. 
     * 
     * @param taiSeconds  the number of TAI seconds from the epoch 
     * @param nanoOfSecond  the nanoseconds within the second, from 0 to 999,999,999 
     */ 
    private TaiInstant(long taiSeconds, int nanoOfSecond) {
        super(); 
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Java 8 DateTimeParseException Methods: