Modify the solution to Programming Project 1 such that it catches and handles the exception if it is thrown. Handle the exception by printing an appropriate message, and then continue processing.
Programming Project 1
Design and implement a program that creates an exception class called InvalidDocumentCodeException, designed to be thrown when an improper designation for a document is encountered during processing. Suppose that in a particular business, all documents are given a two-character designation starting with U, C, or P, which stand for unclassified, confidential, or proprietary. If a document designation is encountered that doesn’t fit that description, the exception is thrown. Create a driver program to test the exception, allowing it to terminate the program.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.