prologix_gpib_ethernet_controller_manager/
errors.rs

1use std::num::ParseIntError;
2use std::str::Utf8Error;
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum GpibControllerError {
7    #[error("Error trying to send or receive data: {0}")]
8    TcpIoError(#[from] std::io::Error),
9    #[error("error parsing integer from a string: {0}")]
10    ParseIntError(#[from] ParseIntError),
11    #[error("error parsing string from TCPStream: {0}")]
12    ParseStringError(#[from] Utf8Error),
13    #[error("Buffer overflow. Increase the size of the buffer or reconsider what you're doing")]
14    BufferTooSmall,
15}