response = setProtocolReference(payload, requestID);
break;
default:
- throw new DBDesignException(" Action " + action + " not found while processing request ");
+ throw new DBException(" Action " + action + " not found while processing request ");
}
return response;
boolean data = dbservice.updateDBData(queryString, argList);
if (!data) {
- throw new DBDesignException("Error while updating ProtocolReference");
+ throw new DBException("Error while updating ProtocolReference");
}
return SUCCESS_JSON;
}
data = dbservice.updateDBData(queryString, argList);
if (!data) {
- throw new DBDesignException("Error while updating ProtocolReference");
+ throw new DBException("Error while updating ProtocolReference");
}
return SUCCESS_JSON;
}
boolean data = dbservice.updateDBData(queryString, argList);
if (!data) {
- throw new DBDesignException("Error while updating RelationShip table");
+ throw new DBException("Error while updating RelationShip table");
}
}
boolean updateStatus = dbservice.updateDBData(insertQuery, argList);
if (!updateStatus)
- throw new DBDesignException("Error while updating Action Status");
+ throw new DBException("Error while updating Action Status");
}
private void createArtifactTrackingRecord(String payload, String requestID, int sdcArtifactId, int sdcReferenceId)
log.info(QUERY_STR + queryString);
boolean data = dbservice.updateDBData(queryString, argList);
if (!data) {
- throw new DBDesignException("Error Updating DT_ARTIFACT_TRACKING ");
+ throw new DBException("Error Updating DT_ARTIFACT_TRACKING ");
}
}
}
}
if (artifactContent == null || artifactContent.isEmpty()) {
- throw new DBDesignException(
+ throw new DBException(
"Sorry !!! I dont have any artifact Named : " + payloadObject.get("artifact-name").textValue());
}
DesignResponse designResponse = new DesignResponse();
designResponse.setUserId(payloadObject.get(USER_ID).textValue());
boolean update = dbservice.updateDBData(queryString, argList);
if (!update) {
- throw new DBDesignException("Sorry .....Something went wrong while updating the Status");
+ throw new DBException("Sorry .....Something went wrong while updating the Status");
}
ObjectMapper mapper = new ObjectMapper();
}
if (statusInfoList.isEmpty()) {
- throw new DBDesignException(
+ throw new DBException(
"OOPS !!!! No VNF information available for VNF-TYPE : " + vnfType + " for User : " + userID);
}
designResponse.setStatusInfoList(statusInfoList);
designInfoList.add(designInfo);
}
if (designInfoList.isEmpty()) {
- throw new DBDesignException(
+ throw new DBException(
" Welcome to CDT, Looks like you dont have Design Yet... Lets create some....");
}
designResponse.setDesignInfoList(designInfoList);