Construct a `ValueError` from a message.
(py: Python, msg: impl ToString)
| 11 | impl Error { |
| 12 | /// Construct a `ValueError` from a message. |
| 13 | pub(crate) fn value_error(py: Python, msg: impl ToString) -> Self { |
| 14 | PyErr::new::<exc::ValueError, _>(py, msg.to_string()).into() |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | impl fmt::Display for Error { |