1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # Product-crate error type
//!
//! ## Technical scope
//!
//! [`PodProductsError`] is the single unified error type returned by every
//! public writer in this crate. It wraps lower-layer errors from
//! `siderust::formats`, `serde_json`, and `std::io` under a typed enum so
//! callers can pattern-match without pulling in lower-layer error types
//! directly.
//!
//! ## References
//!
//! - Blandy, J., Orendorff, J., & Tindall, L. F. S. (2021). *Programming Rust*
//! (2nd ed.). O'Reilly Media.
use Error;
/// Unified error returned by all writers in `siderust::pod::product`.
///
/// # Examples
///
/// ```
/// use siderust::pod::product::PodProductsError;
///
/// let err: PodProductsError =
/// std::io::Error::new(std::io::ErrorKind::BrokenPipe, "pipe").into();
/// assert!(format!("{err}").contains("I/O"));
/// ```