(
&self,
class: &Py<PyType>,
obj: &impl AsObject,
)
| 742 | } |
| 743 | |
| 744 | pub(crate) fn new_downcast_runtime_error( |
| 745 | &self, |
| 746 | class: &Py<PyType>, |
| 747 | obj: &impl AsObject, |
| 748 | ) -> PyBaseExceptionRef { |
| 749 | self.new_downcast_error( |
| 750 | "payload", |
| 751 | self.ctx.exceptions.runtime_error, |
| 752 | class, |
| 753 | obj.as_object(), |
| 754 | ) |
| 755 | } |
| 756 | |
| 757 | pub(crate) fn new_downcast_type_error( |
| 758 | &self, |
no test coverage detected