diff options
Diffstat (limited to 'appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/MissingVNFDataInAAIException.java')
-rw-r--r-- | appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/MissingVNFDataInAAIException.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/MissingVNFDataInAAIException.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/MissingVNFDataInAAIException.java index 219265084..0bd5b8fda 100644 --- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/MissingVNFDataInAAIException.java +++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/MissingVNFDataInAAIException.java @@ -24,10 +24,16 @@ package org.onap.appc.requesthandler.exceptions; -public class MissingVNFDataInAAIException extends Exception { - String missingAttributeName; - public MissingVNFDataInAAIException(String attributeName) { +import org.onap.appc.executor.objects.LCMCommandStatus; +import org.onap.appc.executor.objects.Params; + +public class MissingVNFDataInAAIException extends RequestValidationException { + private String missingAttributeName; + public MissingVNFDataInAAIException(String attributeName ,String vnfId ) { + super("Missing VNF data in AAI"); this.missingAttributeName = attributeName; + super.setLcmCommandStatus(LCMCommandStatus.MISSING_VNF_DATA_IN_AAI); + super.setParams( new Params().addParam("attributeName", attributeName).addParam("vnfId", vnfId)); } public String getMissingAttributeName() { |