ExceptionHandlerTemplate class is added for exception handling