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

Function new_ssl_error

crates/stdlib/src/openssl.rs:3738–3741  ·  view source on GitHub ↗

Helper function to create SSL error with proper OSError subtype handling

(vm: &VirtualMachine, msg: impl ToString)

Source from the content-addressed store, hash-verified

3736
3737 /// Helper function to create SSL error with proper OSError subtype handling
3738 fn new_ssl_error(vm: &VirtualMachine, msg: impl ToString) -> PyBaseExceptionRef {
3739 vm.new_os_subtype_error(PySSLError::class(&vm.ctx).to_owned(), None, msg.to_string())
3740 .upcast()
3741 }
3742
3743 #[track_caller]
3744 pub(crate) fn convert_openssl_error(

Callers 6

set_ciphersMethod · 0.85
set_verify_flagsMethod · 0.85
new_py_ssl_socketMethod · 0.85
socket_closed_errorFunction · 0.85
shutdownMethod · 0.85
writeMethod · 0.85

Calls 4

upcastMethod · 0.80
new_os_subtype_errorMethod · 0.80
to_stringMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected