Question
C# Write an exception tester application that enables you to see the impact of exceptions being thrown. Include multiple catch clauses. Include in our investigation
C#
Write an exception tester application that enables you to see the impact of exceptions being thrown. Include multiple catch clauses. Include in our investigation the ArithmeticException, FormatException, IndexOutOfRangeException, and Exception classes. For each exception, write a try block containing errors to throw the exceptions. As you test the application, include an error that throws the exception and then comment it out and program an error that throws the next exception and so on. Your final solution should include at least one statement per exception that throws each exception. The statements should all be commented out by the time you finish testing. Be sure to include documenting comments with each statement.
This is just a console app assignment. No need to do this as a Windows Form Comment your program. Be sure to include your name and a description of what the program does inside the program. Include your name in the program filename. Turn in: 1. The.cs file 2. A description of how you tested the program and how/why it worked for each condition you are testing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started