rust/hg-cpython/src/exceptions.rs
changeset 42957 7a01778bc7b7
parent 42752 30320c7bf79f
child 44137 3bd77c64bc74
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) => {