mercredi 30 avril 2014

What's idiom/best practice with UncheckedIOException and Stream API?


Vote count:

0




Java 8 officially introduce java.io.UncheckedIOException to JDK class libraries for lambda with Stream API, because lambda expressions can't declare its throws-clause and lambda body can't throw checked exception such as IOException.


What's idiom/best practice with UncheckedIOException and Stream API? What conditions do I explicitly throw new UncheckedIOException object, and when should I catch UncheckedIOException exception?



asked 1 min ago

yohjp

929





Aucun commentaire:

Enregistrer un commentaire