smb_fscc/error.rs
1use thiserror::Error;
2
3/// Errors specific to the smb-fscc crate.
4#[derive(Error, Debug)]
5pub enum SmbFsccError {
6 /// Describes a failure to convert info class enum to variant.
7 ///
8 /// For example, when trying to convert a [`QueryFileInfo`][`crate::QueryFileInfo`] to [`FileAccessInformation`][`crate::FileAccessInformation`],
9 /// and the actual variant is different.
10 #[error("Unexpected information type. Expected {0} ({1}), got {2}")]
11 UnexpectedInformationType(&'static str, u8, u8),
12}