sudachi.rs
sudachi.rs copied to clipboard
Python Exception Types
I noticed that if input is too long in Python an Exception is thrown, but it's a plain Exception, not a ValueError
or something. I see in the Rust code there are a variety of specific error types.
I'm not familiar with Rust, but surely it's possible to have the Python code throw something more specific like a InputTooLongException
?
We will try to use better exception types later