You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/04/29 12:08:22 UTC

[05/10] stratos git commit: Add new exceptions to handle specific errors in Autoscaler

Add new exceptions to handle specific errors in Autoscaler


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/40dbcefc
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/40dbcefc
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/40dbcefc

Branch: refs/heads/master
Commit: 40dbcefc5015b94c65292ebc88891222c6f739ee
Parents: 3206fe7
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Wed Apr 29 15:08:13 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Wed Apr 29 15:38:09 2015 +0530

----------------------------------------------------------------------
 .../AutoScalingPolicyAlreadyExistException.java        |  7 +++++++
 .../exception/policy/PolicyDoesNotExistException.java  | 13 +++++++++++++
 .../exception/policy/UnremovablePolicyException.java   |  9 +++++++++
 3 files changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/40dbcefc/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/AutoScalingPolicyAlreadyExistException.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/AutoScalingPolicyAlreadyExistException.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/AutoScalingPolicyAlreadyExistException.java
new file mode 100644
index 0000000..d9f3e5a
--- /dev/null
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/AutoScalingPolicyAlreadyExistException.java
@@ -0,0 +1,7 @@
+package org.apache.stratos.autoscaler.exception;
+
+public class AutoScalingPolicyAlreadyExistException extends AutoScalerException {
+    public AutoScalingPolicyAlreadyExistException(String msg) {
+        super(msg);
+    }
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/40dbcefc/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/PolicyDoesNotExistException.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/PolicyDoesNotExistException.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/PolicyDoesNotExistException.java
new file mode 100644
index 0000000..b490f65
--- /dev/null
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/PolicyDoesNotExistException.java
@@ -0,0 +1,13 @@
+package org.apache.stratos.autoscaler.exception.policy;
+
+import org.apache.stratos.autoscaler.exception.AutoScalerException;
+
+/**
+ *
+ */
+public class PolicyDoesNotExistException extends AutoScalerException {
+
+    public PolicyDoesNotExistException(String msg) {
+        super(msg);
+    }
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/40dbcefc/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/UnremovablePolicyException.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/UnremovablePolicyException.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/UnremovablePolicyException.java
new file mode 100644
index 0000000..a1a3766
--- /dev/null
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/exception/policy/UnremovablePolicyException.java
@@ -0,0 +1,9 @@
+package org.apache.stratos.autoscaler.exception.policy;
+
+import org.apache.stratos.autoscaler.exception.AutoScalerException;
+
+public class UnremovablePolicyException extends AutoScalerException {
+    public UnremovablePolicyException(String msg) {
+        super(msg);
+    }
+}