accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1431018 - /accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockTableOperations.java
Date Wed, 09 Jan 2013 19:28:17 GMT
Author: ecn
Date: Wed Jan  9 19:28:16 2013
New Revision: 1431018

URL: http://svn.apache.org/viewvc?rev=1431018&view=rev
Log:
ACCUMULO-843 throw the same exceptions as TableOperationsImpl 

Modified:
    accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockTableOperations.java

Modified: accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockTableOperations.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockTableOperations.java?rev=1431018&r1=1431017&r2=1431018&view=diff
==============================================================================
--- accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockTableOperations.java
(original)
+++ accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockTableOperations.java
Wed Jan  9 19:28:16 2013
@@ -262,15 +262,15 @@ public class MockTableOperations extends
   }
   
   @Override
-  public void offline(String tableName) throws AccumuloSecurityException, AccumuloException
{
+  public void offline(String tableName) throws AccumuloSecurityException, AccumuloException,
TableNotFoundException {
     if (!exists(tableName))
-      throw new AccumuloException(tableName + " does not exists");
+      throw new TableNotFoundException(tableName, tableName, "");
   }
   
   @Override
-  public void online(String tableName) throws AccumuloSecurityException, AccumuloException
{
+  public void online(String tableName) throws AccumuloSecurityException, AccumuloException,
TableNotFoundException {
     if (!exists(tableName))
-      throw new AccumuloException(tableName + " does not exists");
+      new TableNotFoundException(tableName, tableName, "");
   }
   
   @Override



Mime
View raw message