subtile/
errors.rs

1//! Custom error types.
2
3use thiserror::Error;
4
5/// A type representing errors that are specific to `subtile`. Note that we may
6/// normally return `Error`, not `SubError`, which allows to return other
7/// kinds of errors from third-party libraries.
8#[derive(Debug, Error)]
9#[non_exhaustive]
10pub enum SubtileError {
11    /// Error with `VobSub`
12    #[error("error with VobSub")]
13    VobSub(#[from] crate::vobsub::VobSubError),
14
15    /// Error during image dump
16    #[error("dump images failed")]
17    ImageDump(#[from] crate::image::DumpError),
18}