An exception handling try block does not include the associated catch statement. To function properly, the exception handling mechanism requires that the code that might fail, along with the code that will not execute if an exception occurs, be wrapped inside a try block. Exceptions are thrown from within the try block using the throw statement and are caught outside the try block with one or more catch statements.
To correct this error
Add the associated catch block.
Try using a finally block instead of a catch block.