Repository: stratos Updated Branches: refs/heads/container-autoscaling 4d59205db -> d2976b28f
Introducing a new exception to throw when member termination fails. Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/e5bc1e25 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/e5bc1e25 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/e5bc1e25 Branch: refs/heads/container-autoscaling Commit: e5bc1e25ddb854c9b3d2426a2df14efcccc4fd69 Parents: 4d59205 Author: Nirmal Fernando <[email protected]> Authored: Fri Oct 10 09:47:40 2014 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Fri Oct 10 09:47:40 2014 +0530 ---------------------------------------------------------------------- .../MemberTerminationFailedException.java | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/e5bc1e25/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/MemberTerminationFailedException.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/MemberTerminationFailedException.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/MemberTerminationFailedException.java new file mode 100644 index 0000000..1db68b5 --- /dev/null +++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/exception/MemberTerminationFailedException.java @@ -0,0 +1,48 @@ +/* + * 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; + + +/** + * Throws when a member termination fails. + * + */ +public class MemberTerminationFailedException extends Exception { + + private static final long serialVersionUID = -7883324379272628566L; + private String message; + + public MemberTerminationFailedException(String msg) { + super(msg); + this.setMessage(msg); + } + + public MemberTerminationFailedException(String msg, Exception ex) { + super(msg, ex); + this.setMessage(msg); + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } +}
