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/05/18 10:10:57 UTC

[2/5] stratos git commit: Add new exception to handle invalid network partition

Add new exception to handle invalid network partition


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

Branch: refs/heads/master
Commit: 17fddba4c798542ef0ea94c8690ac86f2897076f
Parents: c7ece53
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Mon May 18 10:27:49 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Mon May 18 12:17:58 2015 +0530

----------------------------------------------------------------------
 .../InvalidNetworkPartitionException.java       | 43 ++++++++++++++++++++
 1 file changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/17fddba4/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/InvalidNetworkPartitionException.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/InvalidNetworkPartitionException.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/InvalidNetworkPartitionException.java
new file mode 100644
index 0000000..2d4a430
--- /dev/null
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/InvalidNetworkPartitionException.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one 
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
+ * KIND, either express or implied.  See the License for the 
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.cloud.controller.exception;
+
+public class InvalidNetworkPartitionException extends Exception {
+
+    private static final long serialVersionUID = 5403224496111965638L;
+    private String message;
+
+    public InvalidNetworkPartitionException(String msg) {
+        super(msg);
+        this.setMessage(msg);
+    }
+
+    public InvalidNetworkPartitionException(String msg, Exception ex) {
+        super(msg, ex);
+        this.setMessage(msg);
+    }
+
+    private void setMessage(String msg) {
+        this.message = msg;
+    }
+
+    public String getMessage() {
+        return this.message;
+    }
+}