pub mod parsers;
pub mod serializers;

use std::io;

use thiserror::Error;

#[derive(Error, Debug)]
// FIXME probably split out StoreError into framework
pub enum SourceError {
    #[error("The provided source IRI is unsupported")]
    UnsupportedSourceIri,
    #[error("The provided source config is invalid or does not match the IRI type")]
    UnsupportedSourceConfig,
    #[error(transparent)]
    Io(#[from] io::Error),
    #[error("Invalid syntax from source: `{0}`")]
    Syntax(String),
}
