what happens if you output something to the console in your catch section? (and don't forget to add a return value as well since main needs it)

At the moment its hard to say if you re not catching anything since your catch section is not doing anything.
The fact your screenshot shows that the application existed with an error suggests to me the exception is thrown, but since you didn't do anything with it, it is propagated all the way up, and since nothing else deals with it, your app simply exits with an error.