Helper functions to create SSL exceptions with proper errno attribute
(vm: &VirtualMachine)
| 102 | |
| 103 | // Helper functions to create SSL exceptions with proper errno attribute |
| 104 | pub fn create_ssl_want_read_error(vm: &VirtualMachine) -> PyRef<PyOSError> { |
| 105 | vm.new_os_subtype_error( |
| 106 | PySSLWantReadError::class(&vm.ctx).to_owned(), |
| 107 | Some(SSL_ERROR_WANT_READ), |
| 108 | "The operation did not complete (read)", |
| 109 | ) |
| 110 | } |
| 111 | |
| 112 | pub fn create_ssl_want_write_error(vm: &VirtualMachine) -> PyRef<PyOSError> { |
| 113 | vm.new_os_subtype_error( |
no test coverage detected