class DefaultItemFailureHandler extends ItemListenerSupport<Object, Object> {

	protected static final Log logger = LogFactory.getLog(DefaultItemFailureHandler.class);

	@Override
	public void onReadError(Exception ex) {
		try {
			logger.error("Error encountered while reading", ex);
		}
		catch (Exception exception) {
			logger.error("Invalid type for logging: [" + exception + "]");
		}
	}

	@Override
	public void onWriteError(Exception ex, Chunk<?> item) {<FILL_FUNCTION_BODY>}

}

		try {
			logger.error("Error encountered while writing item: [ " + item + "]", ex);
		}
		catch (Exception exception) {
			logger.error("Invalid type for logging: [" + exception + "]");
		}
	
<methods>public non-sealed void <init>() <variables>