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

Function herror

crates/stdlib/src/socket.rs:849–855  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

847
848 #[pyattr(once)]
849 fn herror(vm: &VirtualMachine) -> PyTypeRef {
850 vm.ctx.new_exception_type(
851 "socket",
852 "herror",
853 Some(vec![vm.ctx.exceptions.os_error.to_owned()]),
854 )
855 }
856 #[pyattr(once)]
857 fn gaierror(vm: &VirtualMachine) -> PyTypeRef {
858 vm.ctx.new_exception_type(

Callers 1

convert_socket_errorFunction · 0.85

Calls 2

new_exception_typeMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected