O'Reilly logo

Pragmatic Scala by Venkat Subramaniam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10Handling 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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required