Create a new OSError from the last OS error. On windows, windows-sys errors are expected to be handled by this function. This is identical to `new_last_errno_error` on non-Windows platforms.
(&self)
| 240 | /// On windows, windows-sys errors are expected to be handled by this function. |
| 241 | /// This is identical to `new_last_errno_error` on non-Windows platforms. |
| 242 | pub fn new_last_os_error(&self) -> PyBaseExceptionRef { |
| 243 | let err = std::io::Error::last_os_error(); |
| 244 | err.to_pyexception(self) |
| 245 | } |
| 246 | |
| 247 | /// Create a new OSError from the last POSIX errno. |
| 248 | /// |
no test coverage detected