You need to have a try block before the catch. The try block is where an exception might occur and the catch blocks tell what to do if certain exceptions occur.

You only have a catch block. ...