how to leverage spring batch's exception handling in RecordMapper implementation
Hello,
I configured my spring batch ldap chunk processing to skip records when a certain type of exception occurs:
<batch:chunk reader="multiResourceReader" processor="userProcessor" writer="userWriter" commit-interval="100" skip-limit="1000">
<batch:skippable-exception-classes>
<batch:include class="com.test.SyncException"/>
</batch:skippable-exception-classes>
</batch:chunk>
However, other than MappingLdifReader for its read method, the RecordMapper interface does not define Exception throwing for its method mapRecord:
* Maps an {@link LdapAttributes LdapAttributes} object to the specified type.
*
* @param attributes
* @return object of type T
*/
T mapRecord(LdapAttributes attributes);
What is the correct approach to leverage spring batch's exception handling inside the implementation of this method?
Thanks,
Elmar