protected void handleError(int returnCode, NdbOperation ndbOperation) {
if (returnCode == 0) {
return;
} else {
// first check if the error is reported in the NdbOperation
NdbErrorConst ndbError = ndbOperation.getNdbError();
if (ndbError != null) {
// the error is in NdbOperation
Utility.throwError(returnCode, ndbError);
} else {
// the error must be in the NdbTransaction