Exercise 2: Handle an `OverflowException`

Exercise on handling a OverflowException using `Convert.ToDouble`.

We'll cover the following

Problem Statement

Go through the documentation of ToDouble class in System.Format, you’ll learn that ToDouble can throw a FormatException or an OverflowException.

Your exercise is to throw an OverflowException and properly handle it.

Get hands-on with 1200+ tech skills courses.