Hello,
a new release of the SFS2X client Java API is ready for download, version 1.7.3
We have fixed an issue whereby an exception is thrown when adding custom error codes via the SFSErrorCodes.setErrorMessage(…) method.
Download the updated API here