Skip to content
Browse files

Renamed UnsupportedVoldemortOperationalException to VoldemortUnsuppor…

…tedOperationalException
  • Loading branch information...
1 parent 153b5bf commit ed45d3d2a17ef61566c9b064b56566971f47715c Chinmay Soman committed Feb 21, 2012
View
44 src/java/voldemort/UnsupportedVoldemortOperationException.java
@@ -1,44 +0,0 @@
-/*
- * Copyright 2008-2009 LinkedIn, Inc
- *
- * Licensed 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 voldemort;
-
-/**
- * Base exception that all other Voldemort exceptions extend.
- *
- *
- */
-public class UnsupportedVoldemortOperationException extends VoldemortException {
-
- private static final long serialVersionUID = 1L;
-
- public UnsupportedVoldemortOperationException() {
- super();
- }
-
- public UnsupportedVoldemortOperationException(String s, Throwable t) {
- super(s, t);
- }
-
- public UnsupportedVoldemortOperationException(String s) {
- super(s);
- }
-
- public UnsupportedVoldemortOperationException(Throwable t) {
- super(t);
- }
-
-}
View
4 src/java/voldemort/store/ErrorCodeMapper.java
@@ -19,9 +19,9 @@
import java.util.HashMap;
import java.util.Map;
-import voldemort.UnsupportedVoldemortOperationException;
import voldemort.VoldemortApplicationException;
import voldemort.VoldemortException;
+import voldemort.VoldemortUnsupportedOperationalException;
import voldemort.server.rebalance.AlreadyRebalancingException;
import voldemort.server.rebalance.VoldemortRebalancingException;
import voldemort.store.rebalancing.ProxyUnreachableException;
@@ -57,7 +57,7 @@ public ErrorCodeMapper() {
codeToException.put((short) 13, AlreadyRebalancingException.class);
codeToException.put((short) 14, VoldemortRebalancingException.class);
codeToException.put((short) 15, ProxyUnreachableException.class);
- codeToException.put((short) 16, UnsupportedVoldemortOperationException.class);
+ codeToException.put((short) 16, VoldemortUnsupportedOperationalException.class);
exceptionToCode = new HashMap<Class<? extends VoldemortException>, Short>();
for(Map.Entry<Short, Class<? extends VoldemortException>> entry: codeToException.entrySet())
View
4 src/java/voldemort/store/readonly/ReadOnlyStorageEngine.java
@@ -29,8 +29,8 @@
import org.apache.log4j.Logger;
-import voldemort.UnsupportedVoldemortOperationException;
import voldemort.VoldemortException;
+import voldemort.VoldemortUnsupportedOperationalException;
import voldemort.annotations.jmx.JmxGetter;
import voldemort.annotations.jmx.JmxOperation;
import voldemort.routing.RoutingStrategy;
@@ -544,7 +544,7 @@ public boolean delete(ByteArray key, Version version) throws VoldemortException
*/
public void put(ByteArray key, Versioned<byte[]> value, byte[] transforms)
throws VoldemortException {
- throw new UnsupportedVoldemortOperationException("Put is not supported on this store, it is read-only.");
+ throw new VoldemortUnsupportedOperationalException("Put is not supported on this store, it is read-only.");
}
@JmxGetter(name = "name", description = "The name of the store.")

0 comments on commit ed45d3d

Please sign in to comment.
Something went wrong with that request. Please try again.