(&self, errno: i32, msg: impl ToPyObject)
| 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) |
| 258 | .unwrap_or(self.ctx.exceptions.os_error); |
| 259 | |
| 260 | self.new_os_subtype_error(exc_type.to_owned(), Some(errno), msg) |
| 261 | } |
| 262 | |
| 263 | pub fn new_unicode_decode_error_real( |
| 264 | &self, |
no test coverage detected