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

Function new_binascii_error

crates/stdlib/src/binascii.rs:851–853  ·  view source on GitHub ↗
(msg: String, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

849struct Base64DecodeError(base64::DecodeError);
850
851fn new_binascii_error(msg: String, vm: &VirtualMachine) -> PyBaseExceptionRef {
852 vm.new_exception_msg(decl::error_type(vm), msg.into())
853}
854
855impl ToPyException for Base64DecodeError {
856 fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef {

Callers 5

unhexlifyFunction · 0.85
uu_a2b_readFunction · 0.85
a2b_uuFunction · 0.85
b2a_uuFunction · 0.85
to_pyexceptionMethod · 0.85

Calls 2

new_exception_msgMethod · 0.80
error_typeFunction · 0.70

Tested by

no test coverage detected