voben
// Java code try { return doDangerousThing(); } catch (ExceptionA | ExceptionB e) { e.printStackTrace(); }
theyann
E.Kisaragi
thanksforallthefish
Erik
try { return doDangerousThing(); } catch (t: Throwable) { when (t) { is IOException, is IllegalStateException -> t.printStackTrace() else -> throw t } }
A modern programming language that makes developers happier.