title: Java Exceptions check in main()
body: <p>I have java project contains around 10-15 java files and number of classes. I want to return exit code 1 from catch block inside the main() if any exception occurred any where through out these programs. However all of the classes has exception catch blocks so that exceptions will be handled there itself and catch block inside main() cannot "see" it.</p>
  
  <p>Is there any way to check whether any exception occurred anywhere in the project inside main() of start point without change any code in other files but only at start point. </p>
  
  <p>Thanks
  Noushad</p>