assemblyline_filestore/errors.rs
1//! Errors potentially used by multiple transports
2
3/// A generic error raised when connection attempt limits are reached
4#[derive(thiserror::Error, Debug)]
5#[error("Couldn't reach the requested endpoint inside retry limit")]
6pub struct ConnectionError;
7
8/// An error produced when a transport is in read only mode and a write operation is attempted
9#[derive(thiserror::Error, Debug)]
10#[error("Attempted a write operation on a read only endpoint")]
11pub struct ReadOnlyError;
12