#[non_exhaustive]
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Duplicate name")]
DuplicateName(),
#[error("Wrong layer extent")]
WrongExtent(),
#[error("Invalid geometry data")]
InvalidGeometry(),
#[error("Invalid float value")]
InvalidValue(),
#[error("Protobuf error {0}")]
Protobuf(#[from] prost::EncodeError),
#[error("{0}")]
Io(#[from] std::io::Error),
}
pub type Result<T> = std::result::Result<T, Error>;