Lines Matching refs:error
6 use std::error;
24 /// An error that can occur while translating an `Ast` to a `Hir`.
27 /// The kind of error.
30 /// span in an error is a valid range into this string.
32 /// The span of this error, derived from the Ast given to the translator.
37 /// Return the type of this error.
42 /// The original pattern string in which this error occurred.
44 /// Every span reported by this error is reported in terms of this string.
49 /// Return the span at which this error occurred.
55 /// The type of an error that occurred while building an `Hir`.
58 /// This error occurs when a Unicode feature is used when Unicode
59 /// support is disabled. For example `(?-u:\pL)` would trigger this error.
61 /// This error occurs when translating a pattern that could match a byte
117 impl error::Error for Error {
127 crate::error::Formatter::from(self).fmt(f)
887 /// return an error instead of panicking.
901 /// This routine returns an error when the case mapping data necessary