ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] dspavlov commented on a change in pull request #6423: IGNITE-11256 Cluster wide read-only mode.
Date Thu, 30 May 2019 17:16:38 GMT
dspavlov commented on a change in pull request #6423: IGNITE-11256 Cluster wide read-only mode.
URL: https://github.com/apache/ignite/pull/6423#discussion_r289085817
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/cluster/ClusterReadOnlyModeCheckedException.java
 ##########
 @@ -0,0 +1,82 @@
+/*
+ * 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.ignite.internal.cluster;
+
+import org.apache.ignite.IgniteCheckedException;
+import org.apache.ignite.IgniteCluster;
+import org.jetbrains.annotations.Nullable;
+
+/**
+ * Exception defines modification data error in read-only cluster. See {@link IgniteCluster#readOnly()}
+ */
+public class ClusterReadOnlyModeCheckedException extends IgniteCheckedException {
+    /** */
+    private static final long serialVersionUID = 0L;
+
+    /**
+     * Create empty exception.
+     */
+    public ClusterReadOnlyModeCheckedException() {
+        // No-op.
+    }
+
+    /**
+     * Creates new exception with given error message.
+     *
+     * @param msg Error message.
+     */
+    public ClusterReadOnlyModeCheckedException(String msg) {
+        super(msg);
+    }
+
+    /**
+     * Creates new grid exception with given throwable as a cause and
+     * source of error message.
+     *
+     * @param cause Non-null throwable cause.
+     */
+    public ClusterReadOnlyModeCheckedException(Throwable cause) {
+        super(cause);
+    }
+
+    /**
+     * Creates new exception with given error message and optional nested exception.
+     *
+     * @param msg Error message.
+     * @param cause Optional nested exception (can be {@code null}).
+     * @param writableStackTrace whether or not the stack trace should
+     *                           be writable
+     */
+    public ClusterReadOnlyModeCheckedException(String msg, @Nullable Throwable cause, boolean
writableStackTrace) {
+        super(msg, cause, writableStackTrace);
+    }
+
+    /**
+     * Creates new exception with given error message and optional nested exception.
+     *
+     * @param msg Error message.
+     * @param cause Optional nested exception (can be {@code null}).
+     */
+    public ClusterReadOnlyModeCheckedException(String msg, @Nullable Throwable cause) {
+        super(msg, cause);
+    }
+
+    @Override public String toString() {
 
 Review comment:
   It seems we don't need this method.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message