mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 00:38:16 +00:00
13 lines
466 B
Rust
13 lines
466 B
Rust
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
|
|
pub enum ReaderError {
|
|
#[error("stream input error {0}")]
|
|
StreamInput(String),
|
|
//
|
|
#[error("etag: expected ETag {0} does not match computed ETag {1}")]
|
|
VerifyError(String, String),
|
|
#[error("Bad checksum: Want {0} does not match calculated {1}")]
|
|
ChecksumMismatch(String, String),
|
|
#[error("Bad sha256: Expected {0} does not match calculated {1}")]
|
|
SHA256Mismatch(String, String),
|
|
}
|