subtile 0.4.1

A crate of utils to operate traitements on subtitles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Custom error types.

use thiserror::Error;

/// A type representing errors that are specific to `subtile`. Note that we may
/// normally return `Error`, not `SubError`, which allows to return other
/// kinds of errors from third-party libraries.
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum SubtileError {
    /// Error with `VobSub`
    #[error("error with VobSub")]
    VobSub(#[from] crate::vobsub::VobSubError),

    /// Error during image dump
    #[error("dump images failed")]
    ImageDump(#[from] crate::image::DumpError),
}