On Thu, Sep 24, 2026, at 10:07, Lazare Inepologlou wrote:
> On Thu, 24 Sept 2026 at 09:50, Sjoerd Langkemper <[email protected]> 
> wrote:__
>> Thanks. I changed the RFC to propose throwing an Exception instead of a 
>> ValueError: 
>> https://wiki.php.net/rfc/throw_error_for_invalid_characters_for_number_base
> throwing an Exception is in the correct direction. However, would it be 
> possible to have some more specific exception type? 
> `\UnexpectedValueException` looks like a good candidate.

I agree, and I think everyone agrees that throwing a more specific exception 
would be better eventually. However, the foundation for that is currently 
lacking. Throwing an Exception makes it possible to make this more specific 
later.

Regards,

Sjoerd

Reply via email to