Skip to main content

simple_someip/e2e/
error.rs

1use thiserror::Error;
2
3/// Errors that can occur during E2E protection or checking.
4#[derive(Error, Debug)]
5pub enum Error {
6    /// The output buffer is too small to hold the protected payload.
7    #[error("output buffer too small: need {needed} bytes, got {actual}")]
8    BufferTooSmall {
9        /// The number of bytes required.
10        needed: usize,
11        /// The number of bytes available.
12        actual: usize,
13    },
14}