use thiserror::Error;
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum Error {
#[error("could not initialize libpostal ({component})")]
#[non_exhaustive]
InitializationFailed { component: &'static str },
#[error("could not find libpostal data in any of {candidates:?}")]
#[non_exhaustive]
NoDataDir { candidates: &'static [&'static str] },
#[error("found a '\0' byte in {string:?}")]
#[non_exhaustive]
NullByteInString { string: String },
}