Enum dtparse::ParseError[][src]

pub enum ParseError {
    AmPmWithoutHour,
    ImpossibleTimestamp(&'static str),
    InvalidNumeric(String),
    UnrecognizedFormat,
    UnrecognizedToken(String),
    TimezoneUnsupported,
    YearMonthDayError(&'static str),
}

Potential errors that come up when trying to parse time strings

Variants

Attempted to specify "AM" or "PM" without indicating an hour

Impossible value for a category; the 32nd day of a month is impossible

Unable to parse a numeric value from a token expected to be numeric

Generally unrecognized date string; please report to maintainer so new test cases can be developed

A token the parser did not recognize was in the string, and fuzzy mode was off

A timezone could not be handled; please report to maintainer as the timestring likely exposes a bug in the implementation

Parser unable to make sense of year/month/day parameters in the time string; please report to maintainer as the timestring likely exposes a bug in implementation

Trait Implementations

impl From<DecimalError> for ParseError
[src]

Performs the conversion.

impl From<ParseIntError> for ParseError
[src]

Performs the conversion.

impl Debug for ParseError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ParseError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ParseError

impl Sync for ParseError