compact-genome 12.5.0

Representation of genomes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The error type for sequence IO.

use crate::interface::alphabet::AlphabetError;

/// An error when performing sequence IO.
#[derive(Debug, thiserror::Error)]
pub enum IOError {
    /// An error regarding the sequence alphabet.
    #[error("Alphabet error: {0}")]
    AlphabetError(#[from] AlphabetError),

    /// An error during IO.
    #[error("IO error: {0}")]
    IOError(#[from] std::io::Error),
}