1use protobuf::Error as ProtobufError;
6
7#[non_exhaustive]
9#[derive(Debug, thiserror::Error)]
10pub enum Error {
11 #[error("Duplicate name")]
13 DuplicateName(),
14
15 #[error("Wrong layer extent")]
17 WrongExtent(),
18
19 #[error("Invalid tile ID")]
21 InvalidTid(),
22
23 #[error("Invalid geometry data")]
25 InvalidGeometry(),
26
27 #[error("Invalid float value")]
29 InvalidValue(),
30
31 #[error("Protobuf error {0}")]
33 Protobuf(#[from] ProtobufError),
34}
35
36pub type Result<T> = std::result::Result<T, Error>;