[MIFOSX-875] Unknown Data Integrity Issue has been fixed

This commit is contained in:
Vishwanath R
2014-01-27 19:43:23 +05:30
committed by Vishwas Babu A J
parent dfab937527
commit cb42ff118b
@@ -125,6 +125,10 @@ public class ClientWritePlatformServiceJpaRepositoryImpl implements ClientWriteP
final String accountNo = command.stringValueOfParameterNamed("accountNo");
throw new PlatformDataIntegrityException("error.msg.client.duplicate.accountNo", "Client with accountNo `" + accountNo
+ "` already exists", "accountNo", accountNo);
} else if (realCause.getMessage().contains("mobile_no")) {
final String mobileNo = command.stringValueOfParameterNamed("mobileNo");
throw new PlatformDataIntegrityException("error.msg.client.duplicate.mobileNo", "Client with mobileNo `" + mobileNo
+ "` already exists", "mobileNo", mobileNo);
}
logAsErrorUnexpectedDataIntegrityException(dve);