use miette::Diagnostic;
use snafu::Backtrace;
use snafu::Snafu;

#[derive(Debug, Diagnostic, Snafu)]
#[snafu(visibility(pub))]
pub enum ImporterBuilderError {
    #[snafu(display("importer `{importer}`: `{field}` must be initialized"))]
    UninitializedField {
        backtrace: Backtrace,

        field: &'static str,
        importer: &'static str,
    },
}