/* * Created on Sep 12, 2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package com.regular; /** * @author rdifrang * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class ExceptionCatcher { /** * */ public ExceptionCatcher() { super(); // TODO Auto-generated constructor stub } public void catchException() { try { ExceptionThrower throwUp = new ExceptionThrower(); throwUp.throwException(); } catch(Exception e) { System.out.println("Inside my catch block"); } } public static void main(String[] args) { ExceptionCatcher catcher = new ExceptionCatcher(); catcher.catchException(); } }