Debian Codegraph @

debian/rust-vendor/icu_pattern/src/error.rs

raw
1 // This file is part of ICU4X. For terms of use, please see the file
2 // called LICENSE at the top level of the ICU4X source tree
3 // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
5 use displaydoc::Display;
6
7 #[derive(Debug, Display, Copy, Clone, PartialEq, Eq)]
8 #[non_exhaustive]
9 pub enum PatternError {
10 #[displaydoc("Syntax error in pattern string or invalid serialized pattern")]
11 InvalidPattern,
12 #[displaydoc("A placeholder is invalid or out of range for the pattern type")]
13 InvalidPlaceholder,
14 }
15
16 impl core::error::Error for PatternError {}