Create a decode error.
(
&self,
msg: &str,
s: PyUtf8StrRef,
pos: usize,
vm: &VirtualMachine,
)
| 618 | |
| 619 | /// Create a decode error. |
| 620 | fn make_decode_error( |
| 621 | &self, |
| 622 | msg: &str, |
| 623 | s: PyUtf8StrRef, |
| 624 | pos: usize, |
| 625 | vm: &VirtualMachine, |
| 626 | ) -> PyBaseExceptionRef { |
| 627 | let err = machinery::DecodeError::new(msg, pos); |
| 628 | py_decode_error(err, s.into_wtf8(), vm) |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | impl Callable for JsonScanner { |
no test coverage detected