sudachi.rs icon indicating copy to clipboard operation
sudachi.rs copied to clipboard

Python Exception Types

Open polm opened this issue 2 years ago • 1 comments

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?

polm avatar Jul 04 '22 03:07 polm

We will try to use better exception types later

eiennohito avatar Jul 06 '22 06:07 eiennohito