(
zelf: PyRef<PyBaseException>,
excs: PyObjectRef,
vm: &VirtualMachine,
)
| 65 | |
| 66 | #[pymethod] |
| 67 | fn derive( |
| 68 | zelf: PyRef<PyBaseException>, |
| 69 | excs: PyObjectRef, |
| 70 | vm: &VirtualMachine, |
| 71 | ) -> PyResult { |
| 72 | let message = zelf.get_arg(0).unwrap_or_else(|| vm.ctx.new_str("").into()); |
| 73 | vm.invoke_exception( |
| 74 | vm.ctx.exceptions.base_exception_group.to_owned(), |
| 75 | vec![message, excs], |
| 76 | ) |
| 77 | .map(|e| e.into()) |
| 78 | } |
| 79 | |
| 80 | #[pymethod] |
| 81 | fn subgroup( |
nothing calls this directly
no test coverage detected