MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_lzma_error

Function new_lzma_error

crates/stdlib/src/lzma.rs:94–97  ·  view source on GitHub ↗
(message: impl Into<String>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

92 }
93
94 fn new_lzma_error(message: impl Into<String>, vm: &VirtualMachine) -> PyBaseExceptionRef {
95 let msg: String = message.into();
96 vm.new_exception_msg(vm.class("lzma", "LZMAError"), msg.into())
97 }
98
99 fn catch_lzma_error(err: Error, vm: &VirtualMachine) -> PyBaseExceptionRef {
100 match err {

Callers 7

catch_lzma_errorFunction · 0.85
parse_filter_spec_lzmaFunction · 0.85
parse_filter_chain_specFunction · 0.85
build_filter_specFunction · 0.85
new_errorMethod · 0.85
init_aloneMethod · 0.85
py_newMethod · 0.85

Calls 2

new_exception_msgMethod · 0.80
classMethod · 0.45

Tested by

no test coverage detected