How to Throw & Handle Scala Exceptions
An exception is an unwanted or unexpected event that occurs during the execution of a program which changes its normal flow. Exception handling is the mechanism to respond to and investigate the occurrence and cause of an exception. Generally, exceptions are of two types - checked and unchecked.