/** * Creates Mutations rejected exception * * @param client * AccumuloClient * @param cvsList * list of constraint violations * @param hashMap * authorization failures * @param serverSideErrors * server side errors * @param unknownErrors * number of unknown errors * * @since 2.0.0 */ public MutationsRejectedException(AccumuloClient client, List<ConstraintViolationSummary> cvsList, Map<TabletId,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause) { super("# constraint violations : " + cvsList.size() + " security codes: " + format(hashMap, (ClientContext) client) + " # 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 * * @since 1.7.0 */ public MutationsRejectedException(Instance instance, List<ConstraintViolationSummary> cvsList, Map<TabletId,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause) { super("# constraint violations : " + cvsList.size() + " security codes: " + format(hashMap, instance) + " # 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 * * @deprecated since 1.7.0 see * {@link #MutationsRejectedException(Instance, List, Map, Collection, int, Throwable)} */ @Deprecated public MutationsRejectedException(Instance instance, List<ConstraintViolationSummary> cvsList, HashMap<org.apache.accumulo.core.data.KeyExtent,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause) { super( "# constraint violations : " + cvsList.size() + " security codes: " + format(transformKeys(hashMap, TabletIdImpl.KE_2_TID_OLD), instance) + " # server errors " + serverSideErrors.size() + " # exceptions " + unknownErrors, cause); this.cvsl = cvsList; this.af = transformKeys(hashMap, TabletIdImpl.KE_2_TID_OLD); this.es = serverSideErrors; this.unknownErrors = unknownErrors; }