(&self, msg: impl ToPyObject)
| 122 | } |
| 123 | |
| 124 | pub fn new_os_error(&self, msg: impl ToPyObject) -> PyRef<PyBaseException> { |
| 125 | self.new_os_subtype_error(self.ctx.exceptions.os_error.to_owned(), None, msg) |
| 126 | .upcast() |
| 127 | } |
| 128 | |
| 129 | pub fn new_os_subtype_error( |
| 130 | &self, |
no test coverage detected