use thiserror::Error; #[derive(Clone, Debug, PartialEq, Eq, Error)] pub enum ProtoError { #[error("oneof {oneof_name} must contain at least one variant")] EmptyOneof { oneof_name: String }, #[error("descriptor set could not be decoded")] InvalidDescriptorSet, #[error("descriptor pool could not be built")] InvalidDescriptorPool, }