ed-journals 0.13.0

Provides models for representing and parsing elite dangerous journal files
Documentation
use chrono::ParseError;
use std::num::ParseIntError;
use thiserror::Error;

#[derive(Debug, Error)]
#[error(transparent)]
pub enum LogIOError {
    IO(#[from] std::io::Error),
    SerdeJson(#[from] serde_json::Error),

    #[error("Missing file name")]
    MissingFileName,

    #[error("Failed to represent file name")]
    FailedToRepresentOsString,

    #[error("Incorrect file name")]
    IncorrectFileName,

    #[error("Failed to parse timestamp of log file")]
    FailedToParseLogTime(#[source] ParseError),

    #[error("Failed to parse part number of log file")]
    FailedToParsePart(#[source] ParseIntError),
}