comparison rust/hg-cpython/src/exceptions.rs @ 42957:7a01778bc7b7

rust-hgpath: replace all paths and filenames with HgPath/HgPathBuf Differential Revision: https://phab.mercurial-scm.org/D6774
author Rapha?l Gom?s <rgomes@octobus.net>
date Sun, 01 Sep 2019 20:53:14 +0200
parents 30320c7bf79f
children 3bd77c64bc74
comparison
equal deleted inserted replaced
42956:3fe40dd6355d 42957:7a01778bc7b7
39 } 39 }
40 } 40 }
41 41
42 py_exception!(rustext, PatternError, RuntimeError); 42 py_exception!(rustext, PatternError, RuntimeError);
43 py_exception!(rustext, PatternFileError, RuntimeError); 43 py_exception!(rustext, PatternFileError, RuntimeError);
44 py_exception!(rustext, HgPathPyError, RuntimeError);
44 45
45 impl PatternError { 46 impl PatternError {
46 pub fn pynew(py: Python, inner: hg::PatternError) -> PyErr { 47 pub fn pynew(py: Python, inner: hg::PatternError) -> PyErr {
47 match inner { 48 match inner {
48 hg::PatternError::UnsupportedSyntax(m) => { 49 hg::PatternError::UnsupportedSyntax(m) => {