Create an exception factory class that has a single static method that returns the required exception. This method should accept one enum argument. Do the following for each of these enums: * ApplicationExceptionMessage: return an Exception; * DatabaseExceptionMessage: return a RuntimeException.
Improvements in Java 7 (multiple exceptions)
Rewrite the implementations of the Solution class's methods. Use Java 7's new ability to handle multiple exceptions.
Improvements in Java 7 (try-with-resources)
Rewrite the implementations of the Solution class's methods. Use the new exception handling feature (try-with-resources) that has been added to Java 7.