This is a discussion on Python’s forums about adding something akin to a throws keyword in python.

  • Fal@yiffit.net
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    1
    ·
    10 months ago

    It was always quite clear which exceptions I had to catch (or not)

    Lol. You’re literally the only one that likes checked exceptions. And, it seems you think that it actually gives you information about what exceptions to catch. It does not. Most things just catch and rethrow as a RuntimException