Error handling pitfalls in Scala
There are multiple strategies for error handling in Scala.
Errors can be represented as [exceptions], which is a common way of dealing with errors in languages such as Java. However, exceptions are invisible to the type system, which can make them challenging to deal with. It's easy to leave out the necessary error handling, which can result in unfortunate runtime errors.