Chapter 10
Handling Exceptions

Java’s checked exceptions force you to catch errors, including those you don’t care to handle, so programmers often place empty catch blocks, thus suppressing exceptions instead of naturally propagating them to be handled at the right place. Scala doesn’t do that. It lets you handle only exceptions you care about and leave out the rest. Those you don’t handle are propagated automatically. In this chapter, you’ll learn how to handle exceptions in Scala.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.14.243