summaryrefslogtreecommitdiff
path: root/rust/libnewsboat/src/matchererror.rs
blob: aa5cb7e393ddc496995de23af2fd13a00a0775b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/// Errors produced by `Matcher::matches`.
///
/// These correspond to `MatcherException` on the C++ side.
#[derive(Debug)]
pub enum MatcherError {
    /// Current matchable doesn't have an attribute named `attr`
    AttributeUnavailable { attr: String },

    /// Compiling regular expression `regex` produced an error message `errmsg`
    InvalidRegex { regex: String, errmsg: String },
}