#[non_exhaustive]pub enum Error {
UnsupportedFlag(char),
CaseInsensitiveWithUnicode,
AtomicGroupOffsetsWithDowngrade,
InvalidTimeout,
InvalidMaxSteps,
Parse(String),
MissingStartAnchor,
UnsupportedReference,
}Expand description
An input error from a public entry point.
This covers recoverable problems with the call: a bad flag, a conflicting
config, or a pattern that fails to parse. It is separate from
AnalysisLimit, which reports that the analysis hit a cap and is part of
a successful Report.
Match with a wildcard arm. New variants may be added in a future version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedFlag(char)
A flag letter outside u g s y i d m.
CaseInsensitiveWithUnicode
case_insensitive was set together with unicode.
AtomicGroupOffsetsWithDowngrade
atomic_group_offsets was set together with downgrade_pattern: true.
InvalidTimeout
timeout was zero.
InvalidMaxSteps
max_steps was zero.
Parse(String)
The pattern failed to parse. The string is the parser message.
MissingStartAnchor
downgrade_pattern was off and the pattern has no start anchor.
UnsupportedReference
downgrade_pattern was off and the pattern has a backreference the
analyzer cannot handle without downgrading, such as a reference to a
group of unbounded size.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()