Create a new OSError from the last POSIX errno. On windows, CRT errno are expected to be handled by this function. This is identical to `new_last_os_error` on non-Windows platforms.
(&self)
| 249 | /// On windows, CRT errno are expected to be handled by this function. |
| 250 | /// This is identical to `new_last_os_error` on non-Windows platforms. |
| 251 | pub fn new_last_errno_error(&self) -> PyBaseExceptionRef { |
| 252 | let err = crate::common::os::errno_io_error(); |
| 253 | err.to_pyexception(self) |
| 254 | } |
| 255 | |
| 256 | pub fn new_errno_error(&self, errno: i32, msg: impl ToPyObject) -> PyRef<PyOSError> { |
| 257 | let exc_type = crate::exceptions::errno_to_exc_type(errno, self) |
no test coverage detected