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