netlink_packet_route/nsid/error.rs
// SPDX-License-Identifier: MIT
use netlink_packet_utils::nla::NlaError;
use netlink_packet_utils::DecodeError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum NsidError {
#[error("Invalid {kind}")]
InvalidValue { kind: &'static str, error: DecodeError },
#[error("Unknown NLA type: {kind}")]
UnknownNLA { kind: u16, error: DecodeError },
#[error(transparent)]
ParseNla(#[from] NlaError),
}