Home
last modified time | relevance | path

Searched refs:PatternError (Results 1 – 13 of 13) sorted by relevance

/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/glob-0.3.1/src/
Dlib.rs160 pub fn glob(pattern: &str) -> Result<Paths, PatternError> { in glob() argument
177 pub fn glob_with(pattern: &str, options: MatchOptions) -> Result<Paths, PatternError> { in glob_with() argument
442 pub struct PatternError { struct
450 impl Error for PatternError { argument
456 impl fmt::Display for PatternError { implementation
506 type Err = PatternError;
508 fn from_str(s: &str) -> Result<Self, PatternError> { in from_str() argument
545 pub fn new(pattern: &str) -> Result<Self, PatternError> { in new() argument
567 return Err(PatternError { in new()
586 return Err(PatternError { in new()
[all …]
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/glob-0.3.1/src/
Dlib.rs160 pub fn glob(pattern: &str) -> Result<Paths, PatternError> { in glob() argument
177 pub fn glob_with(pattern: &str, options: MatchOptions) -> Result<Paths, PatternError> { in glob_with() argument
442 pub struct PatternError { struct
450 impl Error for PatternError { implementation
456 impl fmt::Display for PatternError { implementation
506 type Err = PatternError;
508 fn from_str(s: &str) -> Result<Self, PatternError> { in from_str() argument
545 pub fn new(pattern: &str) -> Result<Self, PatternError> { in new() argument
567 return Err(PatternError { in new()
586 return Err(PatternError { in new()
[all …]
/external/rust/android-crates-io/crates/glob/src/
Dlib.rs162 pub fn glob(pattern: &str) -> Result<Paths, PatternError> { in glob() argument
179 pub fn glob_with(pattern: &str, options: MatchOptions) -> Result<Paths, PatternError> { in glob_with() argument
497 pub struct PatternError { struct
505 impl Error for PatternError { implementation
511 impl fmt::Display for PatternError { implementation
565 type Err = PatternError;
567 fn from_str(s: &str) -> Result<Self, PatternError> { in from_str() argument
604 pub fn new(pattern: &str) -> Result<Self, PatternError> { in new() argument
626 return Err(PatternError { in new()
645 return Err(PatternError { in new()
[all …]
/external/python/cpython3/Lib/re/
D_constants.py23 class PatternError(Exception): class
57 error = PatternError
D__init__.py159 PatternError = error = _compiler.PatternError variable
D_compiler.py153 raise PatternError("look-behind requires fixed-width pattern")
212 raise PatternError(f"internal: unsupported operand type {op!r}")
238 raise PatternError(f"internal: unsupported set operator {op!r}")
/external/python/cpython3/Lib/test/
Dtest_re.py50 with self.assertRaises(re.PatternError) as cm:
59 with self.assertRaises(re.PatternError) as cm:
68 assert re.error is re.PatternError
160 with self.assertRaises(re.PatternError):
842 self.assertRaises(re.PatternError, re.compile, '\\%c' % c)
845 self.assertRaises(re.PatternError, re.compile, '[\\%c]' % c)
1082 self.assertRaises(re.PatternError, re.compile, r'(a)b(?<=(?(2)b|x))(c)')
1086 self.assertRaises(re.PatternError, re.compile, r'(a)b(?<=(.)\2)(c)')
1087 self.assertRaises(re.PatternError, re.compile, r'(a)b(?<=(?P<a>.)(?P=a))(c)')
1088 self.assertRaises(re.PatternError, re.compile, r'(a)b(?<=(a)(?(2)b|x))(c)')
[all …]
/external/python/cpython3/Lib/idlelib/
Dsearchengine.py87 except re.PatternError as e:
Dreplace.py114 except re.PatternError:
/external/python/cpython3/Lib/
Dpstats.py332 except re.PatternError:
/external/python/cpython3/Doc/library/
Dre.rst1186 .. exception:: PatternError(msg, pattern=None, pos=None)
1191 error if a string contains no match for a pattern. The ``PatternError`` instance has
1218 ``PatternError`` was originally named ``error``; the latter is kept as an alias for
/external/python/cpython3/Misc/NEWS.d/
D3.13.0a3.rst1690 Renamed :exc:`!re.error` to :exc:`PatternError` for clarity, and kept
/external/python/cpython3/Doc/whatsnew/
D3.13.rst1170 * Rename :exc:`!re.error` to :exc:`~re.PatternError` for improved clarity.