79715223

Date: 2025-07-25 20:40:40
Score: 0.5
Natty:
Report link

It's 2025, and this is kind of old... but now you can do:

try
{
    // Many types of exceptions can be thrown
}
catch (CustomException | AnotherCustomException ac)
{
    ...
}
catch (Exception ex)
{
    ...
}

Which is less ugly.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ejcortes