Comment

Comment by benjamincburns

I mean, if you really want to be pedantic...

> you need to import IOException

    try {
        ...
    } catch(Exception ex){ ... }
;-)

Edit: Or if you want to be just as pedantic, and not write an obnoxious catch-all

    try { 
        ... 
    } catch (java.io.IOException ex) { ... }

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton