diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/AccessDeniedException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/AccessDeniedException.java deleted file mode 100644 index 45949648305..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/AccessDeniedException.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - - -/** - * Exception thrown by access-related methods. - */ -public class AccessDeniedException extends DoNotRetryIOException { - private static final long serialVersionUID = 1913879564363001780L; - - public AccessDeniedException() { - super(); - } - - public AccessDeniedException(Class clazz, String s) { - super( "AccessDenied [" + clazz.getName() + "]: " + s); - } - - public AccessDeniedException(String s) { - super(s); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CallerDisconnectedException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CallerDisconnectedException.java deleted file mode 100644 index d526d87ae5e..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CallerDisconnectedException.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import java.io.IOException; - -/** - * Exception indicating that the remote host making this IPC lost its - * IPC connection. This will never be returned back to a client, - * but is only used for logging on the server side, etc. - */ -public class CallerDisconnectedException extends IOException { - private static final long serialVersionUID = 1L; - public CallerDisconnectedException(String msg) { - super(msg); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ClockOutOfSyncException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ClockOutOfSyncException.java deleted file mode 100644 index 2f716b76537..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ClockOutOfSyncException.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import java.io.IOException; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** - * This exception is thrown by the master when a region server clock skew is - * too high. - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Stable -public class ClockOutOfSyncException extends IOException { - public ClockOutOfSyncException(String message) { - super(message); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ConstraintException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ConstraintException.java deleted file mode 100644 index b1486f5c336..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ConstraintException.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.hbase.client.Put; - -/** - * Exception that a user defined constraint throws on failure of a {@link Put}. - *

- * Does NOT attempt the {@link Put} multiple times, since the constraint - * should fail every time for the same {@link Put} (it should be - * idempotent). - */ -@InterfaceAudience.Private -public class ConstraintException extends org.apache.hadoop.hbase.exceptions.DoNotRetryIOException { - private static final long serialVersionUID = 1197446454511704140L; - - public ConstraintException() { - super(); - } - - public ConstraintException(String msg) - { - super(msg); - } - - - public ConstraintException(String msg, Throwable cause) { - super(msg, cause); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CoprocessorException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CoprocessorException.java deleted file mode 100644 index 5e5409a55c6..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CoprocessorException.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Thrown if a coprocessor encounters any exception. - */ -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class CoprocessorException extends DoNotRetryIOException { - private static final long serialVersionUID = 4357922136679804887L; - - /** Default Constructor */ - public CoprocessorException() { - super(); - } - - /** - * Constructor with a Class object and exception message. - * @param clazz - * @param s - */ - public CoprocessorException(Class clazz, String s) { - super( "Coprocessor [" + clazz.getName() + "]: " + s); - } - - /** - * Constructs the exception and supplies a string as the message - * @param s - message - */ - public CoprocessorException(String s) { - super(s); - } - -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CorruptHFileException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CorruptHFileException.java deleted file mode 100644 index 3b92b3579d3..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CorruptHFileException.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -/** - * This exception is thrown when attempts to read an HFile fail due to corruption or truncation - * issues. - */ -@InterfaceAudience.Private -public class CorruptHFileException extends DoNotRetryIOException { - private static final long serialVersionUID = 1L; - - public CorruptHFileException(String m, Throwable t) { - super(m, t); - } - - public CorruptHFileException(String m) { - super(m); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CorruptedSnapshotException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CorruptedSnapshotException.java deleted file mode 100644 index 112cf2beb17..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/CorruptedSnapshotException.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; - - -/** - * Exception thrown when the found snapshot info from the filesystem is not valid - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class CorruptedSnapshotException extends HBaseSnapshotException { - - /** - * @param message message describing the exception - * @param e cause - */ - public CorruptedSnapshotException(String message, Exception e) { - super(message, e); - } - - /** - * Snapshot was corrupt for some reason - * @param message full description of the failure - * @param snapshot snapshot that was expected - */ - public CorruptedSnapshotException(String message, SnapshotDescription snapshot) { - super(message, snapshot); - } - - /** - * @param message message describing the exception - */ - public CorruptedSnapshotException(String message) { - super(message, (SnapshotDescription)null); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/DoNotRetryIOException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/DoNotRetryIOException.java deleted file mode 100644 index 4a3044c4dfe..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/DoNotRetryIOException.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.HBaseIOException; - -/** - * Subclass if exception is not meant to be retried: e.g. - * {@link org.apache.hadoop.hbase.exceptions.UnknownScannerException} - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class DoNotRetryIOException extends HBaseIOException { - // TODO: This would be more useful as a marker interface than as a class. - private static final long serialVersionUID = 1197446454511704139L; - - /** - * default constructor - */ - public DoNotRetryIOException() { - super(); - } - - /** - * @param message - */ - public DoNotRetryIOException(String message) { - super(message); - } - - /** - * @param message - * @param cause - */ - public DoNotRetryIOException(String message, Throwable cause) { - super(message, cause); - } - - public DoNotRetryIOException(Throwable cause) { - super(cause); - } -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/DroppedSnapshotException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/DroppedSnapshotException.java deleted file mode 100644 index 768470d8e74..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/DroppedSnapshotException.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * 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 org.apache.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -import java.io.IOException; - - -/** - * Thrown during flush if the possibility snapshot content was not properly - * persisted into store files. Response should include replay of hlog content. - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class DroppedSnapshotException extends IOException { - - private static final long serialVersionUID = -5463156580831677374L; - - /** - * @param msg - */ - public DroppedSnapshotException(String msg) { - super(msg); - } - - /** - * default constructor - */ - public DroppedSnapshotException() { - super(); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ExportSnapshotException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ExportSnapshotException.java deleted file mode 100644 index 60638d66d33..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ExportSnapshotException.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -/** - * Thrown when a snapshot could not be exported due to an error during the operation. - */ -@InterfaceAudience.Public -@SuppressWarnings("serial") -public class ExportSnapshotException extends HBaseSnapshotException { - - /** - * @param msg message describing the exception - */ - public ExportSnapshotException(String msg) { - super(msg); - } - - /** - * @param message message describing the exception - * @param e cause - */ - public ExportSnapshotException(String message, Exception e) { - super(message, e); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/FailedLogCloseException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/FailedLogCloseException.java deleted file mode 100644 index c3a0d7baadc..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/FailedLogCloseException.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -import java.io.IOException; - -/** - * Thrown when we fail close of the write-ahead-log file. - * Package private. Only used inside this package. - */ -@InterfaceAudience.Private -public class FailedLogCloseException extends IOException { - private static final long serialVersionUID = 1759152841462990925L; - - /** - * - */ - public FailedLogCloseException() { - super(); - } - - /** - * @param arg0 - */ - public FailedLogCloseException(String arg0) { - super(arg0); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/FileSystemVersionException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/FileSystemVersionException.java deleted file mode 100644 index 2b0e399c513..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/FileSystemVersionException.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import java.io.IOException; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** Thrown when the file system needs to be upgraded */ -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class FileSystemVersionException extends IOException { - private static final long serialVersionUID = 1004053363L; - - /** default constructor */ - public FileSystemVersionException() { - super(); - } - - /** @param s message */ - public FileSystemVersionException(String s) { - super(s); - } - -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/HBaseSnapshotException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/HBaseSnapshotException.java deleted file mode 100644 index a3f340bd605..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/HBaseSnapshotException.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; - -/** - * General exception base class for when a snapshot fails - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class HBaseSnapshotException extends DoNotRetryIOException { - - private SnapshotDescription description; - - /** - * Some exception happened for a snapshot and don't even know the snapshot that it was about - * @param msg Full description of the failure - */ - public HBaseSnapshotException(String msg) { - super(msg); - } - - /** - * Exception for the given snapshot that has no previous root cause - * @param msg reason why the snapshot failed - * @param desc description of the snapshot that is being failed - */ - public HBaseSnapshotException(String msg, SnapshotDescription desc) { - super(msg); - this.description = desc; - } - - /** - * Exception for the given snapshot due to another exception - * @param msg reason why the snapshot failed - * @param cause root cause of the failure - * @param desc description of the snapshot that is being failed - */ - public HBaseSnapshotException(String msg, Throwable cause, SnapshotDescription desc) { - super(msg, cause); - this.description = desc; - } - - /** - * Exception when the description of the snapshot cannot be determined, due to some root other - * root cause - * @param message description of what caused the failure - * @param e root cause - */ - public HBaseSnapshotException(String message, Exception e) { - super(message, e); - } - - public SnapshotDescription getSnapshotDescription() { - return this.description; - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/InvalidFamilyOperationException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/InvalidFamilyOperationException.java deleted file mode 100644 index 05ecfb47707..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/InvalidFamilyOperationException.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -import java.io.IOException; - -/** - * Thrown if a request is table schema modification is requested but - * made for an invalid family name. - */ -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class InvalidFamilyOperationException extends DoNotRetryIOException { - private static final long serialVersionUID = 1L << 22 - 1L; - /** default constructor */ - public InvalidFamilyOperationException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public InvalidFamilyOperationException(String s) { - super(s); - } - - /** - * Constructor taking another exception. - * @param e Exception to grab data from. - */ - public InvalidFamilyOperationException(Exception e) { - super(e); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/InvalidHFileException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/InvalidHFileException.java deleted file mode 100644 index 012699dbcc5..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/InvalidHFileException.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import java.io.IOException; - -import org.apache.hadoop.classification.InterfaceAudience; - -/** - * Thrown when an invalid HFile format is detected - */ -@InterfaceAudience.Private -public class InvalidHFileException extends IOException { - private static final long serialVersionUID = 4660352028739861249L; - - /** constructor */ - public InvalidHFileException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public InvalidHFileException(String s) { - super(s); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/LeaseException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/LeaseException.java deleted file mode 100644 index 0ba7650cd5b..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/LeaseException.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -/** - * Reports a problem with a lease - */ -@InterfaceAudience.Private -public class LeaseException extends DoNotRetryIOException { - - private static final long serialVersionUID = 8179703995292418650L; - - /** default constructor */ - public LeaseException() { - super(); - } - - /** - * @param message - */ - public LeaseException(String message) { - super(message); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/MasterNotRunningException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/MasterNotRunningException.java deleted file mode 100644 index 090c1242f13..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/MasterNotRunningException.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -import java.io.IOException; - -/** - * Thrown if the master is not running - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class MasterNotRunningException extends IOException { - private static final long serialVersionUID = 1L << 23 - 1L; - /** default constructor */ - public MasterNotRunningException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public MasterNotRunningException(String s) { - super(s); - } - - /** - * Constructor taking another exception. - * @param e Exception to grab data from. - */ - public MasterNotRunningException(Exception e) { - super(e); - } - - public MasterNotRunningException(String s, Exception e) { - super(s, e); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NoSuchColumnFamilyException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NoSuchColumnFamilyException.java deleted file mode 100644 index 93510fe5657..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NoSuchColumnFamilyException.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -/** - * Thrown if request for nonexistent column family. - */ -@InterfaceAudience.Private -public class NoSuchColumnFamilyException extends DoNotRetryIOException { - private static final long serialVersionUID = -6569952730832331274L; - - /** default constructor */ - public NoSuchColumnFamilyException() { - super(); - } - - /** - * @param message exception message - */ - public NoSuchColumnFamilyException(String message) { - super(message); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NotAllMetaRegionsOnlineException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NotAllMetaRegionsOnlineException.java deleted file mode 100644 index c772c05047f..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NotAllMetaRegionsOnlineException.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Thrown when an operation requires the root and all meta regions to be online - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class NotAllMetaRegionsOnlineException extends DoNotRetryIOException { - private static final long serialVersionUID = 6439786157874827523L; - /** - * default constructor - */ - public NotAllMetaRegionsOnlineException() { - super(); - } - - /** - * @param message - */ - public NotAllMetaRegionsOnlineException(String message) { - super(message); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NotServingRegionException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NotServingRegionException.java deleted file mode 100644 index 4eac75e434f..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/NotServingRegionException.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.util.Bytes; - -import java.io.IOException; - -/** - * Thrown by a region server if it is sent a request for a region it is not - * serving. - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class NotServingRegionException extends IOException { - private static final long serialVersionUID = 1L << 17 - 1L; - - /** default constructor */ - public NotServingRegionException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public NotServingRegionException(String s) { - super(s); - } - - /** - * Constructor - * @param s message - */ - public NotServingRegionException(final byte [] s) { - super(Bytes.toString(s)); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/OrphanHLogAfterSplitException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/OrphanHLogAfterSplitException.java deleted file mode 100644 index 7ca8412de32..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/OrphanHLogAfterSplitException.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -import java.io.IOException; - -@InterfaceAudience.Private -public class OrphanHLogAfterSplitException extends IOException { - - private static final long serialVersionUID = -4363805979687710634L; - - /** - * Create this exception without a message - */ - public OrphanHLogAfterSplitException() { - super(); - } - - /** - * Create this exception with a message - * @param message why it failed - */ - public OrphanHLogAfterSplitException(String message) { - super(message); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/PleaseHoldException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/PleaseHoldException.java deleted file mode 100644 index c208ed51b08..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/PleaseHoldException.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.HBaseIOException; - -/** - * This exception is thrown by the master when a region server was shut down and - * restarted so fast that the master still hasn't processed the server shutdown - * of the first instance, or when master is initializing and client call admin - * operations, or when an operation is performed on a region server that is still starting. - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Stable -public class PleaseHoldException extends HBaseIOException { - public PleaseHoldException(String message) { - super(message); - } - - public PleaseHoldException(String message, Throwable cause) { - super(message, cause); - } - - public PleaseHoldException(Throwable cause) { - super(cause); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionAlreadyInTransitionException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionAlreadyInTransitionException.java deleted file mode 100644 index a2443642add..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionAlreadyInTransitionException.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -import java.io.IOException; - -/** - * This exception is thrown when a region server is asked to open or close - * a region but it's already processing it - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Stable -public class RegionAlreadyInTransitionException extends IOException { - - public RegionAlreadyInTransitionException(String s) { - super(s); - } - -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionException.java deleted file mode 100644 index c1ca1d03281..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionException.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.HBaseIOException; - -/** - * Thrown when something happens related to region handling. - * Subclasses have to be more specific. - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class RegionException extends HBaseIOException { - private static final long serialVersionUID = 1473510258071111371L; - - /** default constructor */ - public RegionException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public RegionException(String s) { - super(s); - } -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionServerRunningException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionServerRunningException.java deleted file mode 100644 index 2ed06541bd5..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionServerRunningException.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -import java.io.IOException; - -/** - * Thrown if the region server log directory exists (which indicates another - * region server is running at the same address) - */ -@InterfaceAudience.Private -public class RegionServerRunningException extends IOException { - private static final long serialVersionUID = 1L << 31 - 1L; - - /** Default Constructor */ - public RegionServerRunningException() { - super(); - } - - /** - * Constructs the exception and supplies a string as the message - * @param s - message - */ - public RegionServerRunningException(String s) { - super(s); - } - -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionServerStoppedException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionServerStoppedException.java deleted file mode 100644 index d1e311464f4..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionServerStoppedException.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import java.io.IOException; - -import org.apache.hadoop.classification.InterfaceAudience; - -/** - * Thrown by the region server when it is in shutting down state. - */ -@SuppressWarnings("serial") -@InterfaceAudience.Private -public class RegionServerStoppedException extends IOException { - public RegionServerStoppedException(String s) { - super(s); - } -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionTooBusyException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionTooBusyException.java deleted file mode 100644 index 516eb42455c..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RegionTooBusyException.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import java.io.IOException; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Thrown by a region server if it will block and wait to serve a request. - * For example, the client wants to insert something to a region while the - * region is compacting. - */ -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class RegionTooBusyException extends IOException { - private static final long serialVersionUID = 1728345723728342L; - - /** default constructor */ - public RegionTooBusyException() { - super(); - } - - /** - * Constructor - * @param msg message - */ - public RegionTooBusyException(final String msg) { - super(msg); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RestoreSnapshotException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RestoreSnapshotException.java deleted file mode 100644 index be12e920694..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/RestoreSnapshotException.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; - -/** - * Thrown when a snapshot could not be restored due to a server-side error when restoring it. - */ -@SuppressWarnings("serial") -public class RestoreSnapshotException extends HBaseSnapshotException { - public RestoreSnapshotException(String msg, SnapshotDescription desc) { - super(msg, desc); - } - - public RestoreSnapshotException(String msg, Throwable cause, SnapshotDescription desc) { - super(msg, cause, desc); - } - - public RestoreSnapshotException(String msg) { - super(msg); - } - - public RestoreSnapshotException(String message, Exception e) { - super(message, e); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ServerNotRunningYetException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ServerNotRunningYetException.java deleted file mode 100644 index 5da9c766b9b..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ServerNotRunningYetException.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; - -import java.io.IOException; - -@SuppressWarnings("serial") -@InterfaceAudience.Private -public class ServerNotRunningYetException extends IOException { - public ServerNotRunningYetException(String s) { - super(s); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotCreationException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotCreationException.java deleted file mode 100644 index 6d3e9c46573..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotCreationException.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; - -/** - * Thrown when a snapshot could not be created due to a server-side error when taking the snapshot. - */ -@SuppressWarnings("serial") -public class SnapshotCreationException extends HBaseSnapshotException { - - /** - * Used internally by the RPC engine to pass the exception back to the client. - * @param msg error message to pass back - */ - public SnapshotCreationException(String msg) { - super(msg); - } - - /** - * Failure to create the specified snapshot - * @param msg reason why the snapshot couldn't be completed - * @param desc description of the snapshot attempted - */ - public SnapshotCreationException(String msg, SnapshotDescription desc) { - super(msg, desc); - } - - /** - * Failure to create the specified snapshot due to an external cause - * @param msg reason why the snapshot couldn't be completed - * @param cause root cause of the failure - * @param desc description of the snapshot attempted - */ - public SnapshotCreationException(String msg, Throwable cause, SnapshotDescription desc) { - super(msg, cause, desc); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotDoesNotExistException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotDoesNotExistException.java deleted file mode 100644 index 9624f5aeee1..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotDoesNotExistException.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; - - -/** - * Thrown when the server is looking for a snapshot but can't find the snapshot on the filesystem - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class SnapshotDoesNotExistException extends HBaseSnapshotException { - /** - * @param msg full description of the failure - */ - public SnapshotDoesNotExistException(String msg) { - super(msg); - } - - /** - * @param desc expected snapshot to find - */ - public SnapshotDoesNotExistException(SnapshotDescription desc) { - super("Snapshot '" + desc.getName() +"' doesn't exist on the filesystem", desc); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotExistsException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotExistsException.java deleted file mode 100644 index 76e2e74a2a1..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/SnapshotExistsException.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; - -/** - * Thrown when a snapshot exists but should not - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class SnapshotExistsException extends HBaseSnapshotException { - - /** - * Failure due to the snapshot already existing - * @param msg full description of the failure - * @param desc snapshot that was attempted - */ - public SnapshotExistsException(String msg, SnapshotDescription desc) { - super(msg, desc); - } -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableExistsException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableExistsException.java deleted file mode 100644 index 12512c7aff4..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableExistsException.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - * 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 org.apache.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Thrown when a table exists but should not - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class TableExistsException extends DoNotRetryIOException { - private static final long serialVersionUID = 1L << 7 - 1L; - /** default constructor */ - public TableExistsException() { - super(); - } - - /** - * Constructor - * - * @param s message - */ - public TableExistsException(String s) { - super(s); - } -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableInfoMissingException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableInfoMissingException.java deleted file mode 100644 index b0c39e080fa..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableInfoMissingException.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.hbase.HBaseIOException; - -/** - * - * Failed to find .tableinfo file under table dir - * - */ -@InterfaceAudience.Private -@SuppressWarnings("serial") -public class TableInfoMissingException extends HBaseIOException { - - public TableInfoMissingException() { - super(); - } - - public TableInfoMissingException( String message ) { - super(message); - } - - public TableInfoMissingException( String message, Throwable t ) { - super(message, t); - } - - public TableInfoMissingException( Throwable t ) { - super(t); - } - -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotDisabledException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotDisabledException.java deleted file mode 100644 index addc2479d80..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotDisabledException.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.util.Bytes; - -/** - * Thrown if a table should be offline but is not - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class TableNotDisabledException extends DoNotRetryIOException { - private static final long serialVersionUID = 1L << 19 - 1L; - /** default constructor */ - public TableNotDisabledException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public TableNotDisabledException(String s) { - super(s); - } - - /** - * @param tableName Name of table that is not disabled - */ - public TableNotDisabledException(byte[] tableName) { - this(Bytes.toString(tableName)); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotEnabledException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotEnabledException.java deleted file mode 100644 index f60999f740e..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotEnabledException.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.util.Bytes; - - -/** - * Thrown if a table should be enabled but is not - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class TableNotEnabledException extends DoNotRetryIOException { - private static final long serialVersionUID = 262144L; - /** default constructor */ - public TableNotEnabledException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public TableNotEnabledException(String s) { - super(s); - } - - /** - * @param tableName Name of table that is not enabled - */ - public TableNotEnabledException(byte[] tableName) { - this(Bytes.toString(tableName)); - } -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotFoundException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotFoundException.java deleted file mode 100644 index a0683899f60..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TableNotFoundException.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** Thrown when a table can not be located */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class TableNotFoundException extends DoNotRetryIOException { - private static final long serialVersionUID = 993179627856392526L; - - /** default constructor */ - public TableNotFoundException() { - super(); - } - - /** @param s message */ - public TableNotFoundException(String s) { - super(s); - } -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TablePartiallyOpenException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TablePartiallyOpenException.java deleted file mode 100644 index 040aeacc4b4..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/TablePartiallyOpenException.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; -import org.apache.hadoop.hbase.util.Bytes; - -import java.io.IOException; - -/** - * Thrown if a table should be online/offline but is partially open - */ -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class TablePartiallyOpenException extends IOException { - private static final long serialVersionUID = 3571982660065058361L; - - public TablePartiallyOpenException() { - super(); - } - - /** - * @param s message - */ - public TablePartiallyOpenException(String s) { - super(s); - } - - /** - * @param tableName Name of table that is partial open - */ - public TablePartiallyOpenException(byte[] tableName) { - this(Bytes.toString(tableName)); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownRegionException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownRegionException.java deleted file mode 100644 index f751cb0fb57..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownRegionException.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Thrown when we are asked to operate on a region we know nothing about. - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class UnknownRegionException extends RegionException { - private static final long serialVersionUID = 1968858760475205392L; - - public UnknownRegionException(String regionName) { - super(regionName); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownScannerException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownScannerException.java deleted file mode 100644 index 486d65bb5f0..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownScannerException.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - - -/** - * Thrown if a region server is passed an unknown scanner id. - * Usually means the client has take too long between checkins and so the - * scanner lease on the serverside has expired OR the serverside is closing - * down and has cancelled all leases. - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class UnknownScannerException extends DoNotRetryIOException { - private static final long serialVersionUID = 993179627856392526L; - - /** constructor */ - public UnknownScannerException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public UnknownScannerException(String s) { - super(s); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownSnapshotException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownSnapshotException.java deleted file mode 100644 index e8b235320cc..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/UnknownSnapshotException.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Exception thrown when we get a request for a snapshot we don't recognize. - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class UnknownSnapshotException extends HBaseSnapshotException { - - /** - * @param msg full information about the failure - */ - public UnknownSnapshotException(String msg) { - super(msg); - } - - public UnknownSnapshotException(String msg, Exception e) { - super(msg, e); - } - -} \ No newline at end of file diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/WrongRegionException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/WrongRegionException.java deleted file mode 100644 index 2a88bfefa94..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/WrongRegionException.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -import java.io.IOException; - -/** - * Thrown when a request contains a key which is not part of this region - */ -@InterfaceAudience.Public -@InterfaceStability.Stable -public class WrongRegionException extends IOException { - private static final long serialVersionUID = 993179627856392526L; - - /** constructor */ - public WrongRegionException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public WrongRegionException(String s) { - super(s); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/YouAreDeadException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/YouAreDeadException.java deleted file mode 100644 index 5773c1a6e42..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/YouAreDeadException.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -import java.io.IOException; - -/** - * This exception is thrown by the master when a region server reports and is - * already being processed as dead. This can happen when a region server loses - * its session but didn't figure it yet. - */ -@SuppressWarnings("serial") -@InterfaceAudience.Public -@InterfaceStability.Stable -public class YouAreDeadException extends IOException { - public YouAreDeadException(String message) { - super(message); - } -} diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ZooKeeperConnectionException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ZooKeeperConnectionException.java deleted file mode 100644 index c653c89c3fc..00000000000 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ZooKeeperConnectionException.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * - * 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.hadoop.hbase.exceptions; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.classification.InterfaceStability; - -import java.io.IOException; - -/** - * Thrown if the client can't connect to zookeeper - */ -@InterfaceAudience.Public -@InterfaceStability.Evolving -public class ZooKeeperConnectionException extends IOException { - private static final long serialVersionUID = 1L << 23 - 1L; - /** default constructor */ - public ZooKeeperConnectionException() { - super(); - } - - /** - * Constructor - * @param s message - */ - public ZooKeeperConnectionException(String s) { - super(s); - } - - /** - * Constructor taking another exception. - * @param e Exception to grab data from. - */ - public ZooKeeperConnectionException(String message, Exception e) { - super(message, e); - } -}