X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=adapters%2Fmso-adapter-utils%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fso%2Fcloudify%2Fexceptions%2FMsoCloudifyTimeout.java;h=99b6ade3269aa750cc111445e906885ce59689cf;hb=f47919f1fe367b612fa9c96d34c59f01a541e882;hp=7dcd69d0a4b66b388d5354eb22ef49d1497c5505;hpb=54452b80a1cf4d22ef750bc1377f8c1b05431d57;p=so.git diff --git a/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/exceptions/MsoCloudifyTimeout.java b/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/exceptions/MsoCloudifyTimeout.java index 7dcd69d0a4..99b6ade326 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/exceptions/MsoCloudifyTimeout.java +++ b/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/exceptions/MsoCloudifyTimeout.java @@ -25,40 +25,42 @@ import org.onap.so.openstack.exceptions.MsoException; import org.onap.so.openstack.exceptions.MsoExceptionCategory; /** - * MSO Exception when a Cloudify workflow execution times out waiting for completion. - * Exception includes the last known state of the workflow execution. + * MSO Exception when a Cloudify workflow execution times out waiting for completion. Exception includes the last known + * state of the workflow execution. */ -public class MsoCloudifyTimeout extends MsoException -{ - - /** +public class MsoCloudifyTimeout extends MsoException { + + /** * Serialization id. */ private static final long serialVersionUID = 3313636124141766495L; - - private Execution execution; - /** - * Constructor to create a new MsoOpenstackException instance - * @param code the error code - * @param message the error message - * @param detail error details - */ - public MsoCloudifyTimeout (Execution execution) { - // Set the detailed error as the Exception 'message' - super("Cloudify Workflow Timeout for workflow " + execution.getWorkflowId() + " on deployment " + execution.getDeploymentId()); - super.category = MsoExceptionCategory.OPENSTACK; - - this.execution = execution; - } - - public Execution getExecution() { - return this.execution; - } - - @Override - public String toString () { - String error = "Workflow timeout: workflow=" + execution.getWorkflowId() + ",deployment=" + execution.getDeploymentId(); - return error; - } + private Execution execution; + + /** + * Constructor to create a new MsoOpenstackException instance + * + * @param code the error code + * @param message the error message + * @param detail error details + */ + public MsoCloudifyTimeout(Execution execution) { + // Set the detailed error as the Exception 'message' + super("Cloudify Workflow Timeout for workflow " + execution.getWorkflowId() + " on deployment " + + execution.getDeploymentId()); + super.category = MsoExceptionCategory.OPENSTACK; + + this.execution = execution; + } + + public Execution getExecution() { + return this.execution; + } + + @Override + public String toString() { + String error = "Workflow timeout: workflow=" + execution.getWorkflowId() + ",deployment=" + + execution.getDeploymentId(); + return error; + } }