Author: Ashish Chaudhary

Error Handling in Scala with Option, Try/Catch and Either

Reading Time: 3 minutes Error handling is the process of handling the possibility of failure. For example, failing to read a file and then continuing to use that bad input would clearly be problematic. Noticing and explicitly managing these errors saves the rest of the program from various pitfalls. Exceptions in Scala work the same way as in C++ or Java. When an exception occurs, say an Arithmetic Exception then the Continue Reading

Case classes and Anonymous Function in Scala

Reading Time: 3 minutes In this blog, we’ll be looking at one of the important concepts of Scala that is Case class, also we will see how to define a Scala case class and along with this, we’ll discuss what are the important features of case classes, the importance of case classes. We will learn how to define a minimal case class and why do we need case classes Continue Reading