Repository: accumulo
Updated Branches:
  refs/heads/master bf102d071 -> 4c1017e3e


ACCUMULO-2659 added MRE constructor back and deprecated it


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/882cfc88
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/882cfc88
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/882cfc88

Branch: refs/heads/master
Commit: 882cfc881f0e3d6fa504761bf456ebb6f3f61365
Parents: f51d7bb
Author: Keith Turner <[email protected]>
Authored: Fri Apr 11 16:32:18 2014 -0400
Committer: Keith Turner <[email protected]>
Committed: Fri Apr 11 16:32:18 2014 -0400

----------------------------------------------------------------------
 .../core/client/MutationsRejectedException.java | 23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/882cfc88/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
----------------------------------------------------------------------
diff --git 
a/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
 
b/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
index fba2893..37233f5 100644
--- 
a/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
+++ 
b/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
@@ -51,6 +51,29 @@ public class MutationsRejectedException extends 
AccumuloException {
    *          server side errors
    * @param unknownErrors
    *          number of unknown errors
+   *          
+   * @deprecated since 1.6.0, see {@link #MutationsRejectedException(Instance, 
List, HashMap, Collection, int, Throwable)}
+   */
+  @Deprecated
+  public MutationsRejectedException(List<ConstraintViolationSummary> cvsList, 
HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap,
+      Collection<String> serverSideErrors, int unknownErrors, Throwable cause) 
{
+    super("# constraint violations : " + cvsList.size() + "  security codes: " 
+ hashMap.values() + "  # server errors " + serverSideErrors.size()
+        + " # exceptions " + unknownErrors, cause);
+    this.cvsl = cvsList;
+    this.af = hashMap;
+    this.es = serverSideErrors;
+    this.unknownErrors = unknownErrors;
+  }
+  
+  /**
+   * @param cvsList
+   *          list of constraint violations
+   * @param hashMap
+   *          authorization failures
+   * @param serverSideErrors
+   *          server side errors
+   * @param unknownErrors
+   *          number of unknown errors
    */
   public MutationsRejectedException(Instance instance, 
List<ConstraintViolationSummary> cvsList, 
HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap,
       Collection<String> serverSideErrors, int unknownErrors, Throwable cause) 
{

Reply via email to