sun.reflect.generics.reflectiveObjects.NotImplementedException Java Examples

The following examples show how to use sun.reflect.generics.reflectiveObjects.NotImplementedException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MultiKeysXSyncTest.java    From xsync with Apache License 2.0 6 votes vote down vote up
@Test
void throwExceptionInFunction() {

	Exception exception = null;
	try {
		xsync.evaluate(Arrays.asList(123L), () -> {
			// nop
			throw new NotImplementedException();
		});
	} catch (Exception e) {
		exception = e;
	}

	assertThat(exception).isNotNull();
	assertThat(exception.getClass()).isEqualTo(NotImplementedException.class);
}
 
Example #2
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public Collection<SchemaBranch> authorizeGetAllBranches(Authorizer.UserAndGroups userAndGroups,
                                                        ISchemaRegistry schemaRegistry,
                                                        String schemaMetadataName,
                                                        Collection<SchemaBranch> branches)  {
    throw new NotImplementedException();
}
 
Example #3
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   Long versionId,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example #4
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   SchemaIdVersion versionId,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example #5
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   String schemaMetadataName,
                                   String schemaBranch,
                                   Authorizer.AccessType accessType)   {
    throw new NotImplementedException();
}
 
Example #6
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeCreateSchemaBranch(Authorizer.UserAndGroups userAndGroups,
                                        ISchemaRegistry schemaRegistry,
                                        String schemaMetadataName,
                                        Long versionId,
                                        String branchTocreate)   {
    throw new NotImplementedException();
}
 
Example #7
Source File: ClickableRelic.java    From StSLib with MIT License 5 votes vote down vote up
default boolean hovered()
{
    if (this instanceof AbstractRelic) {
        AbstractRelic relic = (AbstractRelic) this;
        return relic.hb.hovered;
    }
    throw new NotImplementedException();
}
 
Example #8
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   SchemaVersionKey versionKey,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example #9
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   SchemaVersionInfo versionInfo,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example #10
Source File: ExceptionHandlerControllerAdvice.java    From OpenLRW with Educational Community License v2.0 5 votes vote down vote up
@ExceptionHandler(NotImplementedException.class)
@ResponseStatus(HttpStatus.NOT_IMPLEMENTED)
public MessageResponse handleNotImplementedException(HttpServletRequest request, NotImplementedException e) {
    MessageResponse response = new MessageResponse(HttpStatus.NOT_IMPLEMENTED, buildDate(), request, e.getLocalizedMessage());
    log(e, response);
    return response;
}
 
Example #11
Source File: GBM.java    From tgboost with MIT License 5 votes vote down vote up
private double calculate_metric(String eval_metric,double[] pred,double[] label){
    if(eval_metric.equals("acc")){
        return Metric.accuracy(pred,label);
    }else if(eval_metric.equals("error")){
        return Metric.error(pred,label);
    }else if(eval_metric.equals("mse")){
        return Metric.mean_square_error(pred,label);
    }else if(eval_metric.equals("mae")){
        return Metric.mean_absolute_error(pred,label);
    }else if(eval_metric.equals("auc")){
        return Metric.auc(pred,label);
    }else {
        throw new NotImplementedException();
    }
}
 
Example #12
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaMetadata(Authorizer.UserAndGroups userAndGroups,
                                    ISchemaRegistry schemaRegistry,
                                    String schemaMetadataName,
                                    Authorizer.AccessType accessType)   {
    throw new NotImplementedException();
}
 
Example #13
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 4 votes vote down vote up
@Override
public Collection<AggregatedSchemaMetadataInfo> authorizeGetAggregatedSchemaList
        (Authorizer.UserAndGroups userAndGroups, Collection<AggregatedSchemaMetadataInfo> aggregatedSchemaMetadataInfoList) {
    throw new NotImplementedException();
}
 
Example #14
Source File: Program.java    From INFDEV02-4 with MIT License 4 votes vote down vote up
@Override
public void X() {
    throw new NotImplementedException();
}
 
Example #15
Source File: UniqueVertexHugeGraph.java    From Ngram-Graphs with Apache License 2.0 4 votes vote down vote up
@Override
public GraphFactory getGraphFactory() {
    throw new NotImplementedException();
}
 
Example #16
Source File: UniqueVertexHugeGraph.java    From Ngram-Graphs with Apache License 2.0 4 votes vote down vote up
@Override
public WeightedGraph shortestPath(Vertex vertex) {
    throw new NotImplementedException();
}
 
Example #17
Source File: Loss.java    From tgboost with MIT License 4 votes vote down vote up
public double[] transform(double[] pred){
    throw new NotImplementedException();
}
 
Example #18
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 4 votes vote down vote up
@Override
public Collection<SchemaVersionInfo> authorizeGetAllVersions(Authorizer.UserAndGroups userAndGroups,
                                                         ISchemaRegistry schemaRegistry,
                                                             Collection<SchemaVersionInfo> versions) {
    throw new NotImplementedException();
}
 
Example #19
Source File: RowIteratorMerger.java    From antsdb with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public void rewind() {
	throw new NotImplementedException();
}
 
Example #20
Source File: UniqueVertexHugeGraph.java    From Ngram-Graphs with Apache License 2.0 4 votes vote down vote up
@Override
public GraphFactory getGraphFactory() {
    throw new NotImplementedException();
}
 
Example #21
Source File: ArrayVarStore.java    From RankPL with MIT License 4 votes vote down vote up
@Override
public VarStore createClosureWith(String[] vars, List<Object> values) throws RPLException {
	throw new NotImplementedException();
}
 
Example #22
Source File: UniqueVertexHugeGraph.java    From Ngram-Graphs with Apache License 2.0 4 votes vote down vote up
@Override
public Vertex getClosest(Vertex v) {
    throw new NotImplementedException();
}
 
Example #23
Source File: UniqueVertexHugeGraph.java    From Ngram-Graphs with Apache License 2.0 4 votes vote down vote up
@Override
public void forgetConnectedSets() {
    throw new NotImplementedException();
}
 
Example #24
Source File: UniqueVertexHugeGraph.java    From Ngram-Graphs with Apache License 2.0 4 votes vote down vote up
@Override
public GraphTraversal getTraversal() {
    throw new NotImplementedException();
}
 
Example #25
Source File: GetMenusServlet.java    From elemeimitate with Apache License 2.0 4 votes vote down vote up
/**
 */
public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws ServletException, IOException {
	throw new NotImplementedException();
}
 
Example #26
Source File: Loss.java    From tgboost with MIT License 4 votes vote down vote up
public double[] grad(double[] pred,double[] label){
    throw new NotImplementedException();
}
 
Example #27
Source File: PainlessScript.java    From vind with Apache License 2.0 4 votes vote down vote up
public void checkValidPainlessSentence(FieldDescriptor<?> field, UpdateOperation op) {
    final List<String> errors = new ArrayList<>();
    if( Objects.isNull(field)) {
        log.warn("Provided field must not be null");
        errors.add("Provided field must not be null");
    }

    if(!Objects.nonNull(op)){
        log.warn("Provided operation must not be null.");
        errors.add("Provided operation must not be null");
    }

    if(Objects.nonNull(op) && Objects.nonNull(field)) {
        if(!field.isUpdate()) {
            log.warn("Provided field cannot be updated: field {} is not set as updatable", field.getName());
            errors.add(String.format(
                    "Provided field cannot be updated: field %s is not set as updatable",
                    field.getName()));
        }

        switch (op.getType()) {
            case set:
                break;
            case inc:
                if(!Number.class.isAssignableFrom(field.getType())) {
                    log.warn("Provided field cannot be increased: field {} is not number based", field.getName());
                    errors.add(String.format(
                            "Provided field cannot be increased: field %s is not number based",
                            field.getName()));
                }
                if(field.isMultiValue()) {
                    log.warn("Provided field cannot be increased: field {} must not be multivalued" , field.getName());
                    errors.add(String.format(
                            "Provided field cannot be increased: field %s must not be multivalued",
                            field.getName()));
                }
                break;
            case add:
                if(!field.isMultiValue()) {
                    log.warn("Provided field cannot be added values: field {} is not multivalued", field.getName());
                    errors.add(String.format(
                            "Provided field cannot be added values: field %s is not multivalued",
                            field.getName()));
                }
                break;
            case remove:
                if(Objects.nonNull(op.getValue())){
                    if(!field.isMultiValue()) {
                        log.warn("Provided field cannot be removed values: field {} is not multivalued" , field.getName());
                        errors.add(String.format(
                                "Provided field cannot be removed values: field %s is not multivalued",
                                field.getName()));
                    }
                }
                break;
            case removeregex:
                //TODO: find a way to implement removeregex in painless script
            default:
                throw new NotImplementedException();
        }
    }

    if(!errors.isEmpty()) {
        final String errorMsg = errors.stream()
                .collect(Collectors.joining(", "));
        throw new SearchServerException(String.format("Invalid update operation: %s",errorMsg));
    }
}
 
Example #28
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 4 votes vote down vote up
@Override
public Collection<SchemaVersionKey> authorizeFindSchemasByFields(Authorizer.UserAndGroups userAndGroups,
                                                                 ISchemaRegistry schemaRegistry,
                                                                 Collection<SchemaVersionKey> versions) {
    throw new NotImplementedException();
}
 
Example #29
Source File: ElasticSearchServer.java    From vind with Apache License 2.0 4 votes vote down vote up
@Override
public <T> String getRawQuery(ExecutableSuggestionSearch search, Class<T> c) {
    throw new NotImplementedException();
}
 
Example #30
Source File: TestAuthorizationAgent.java    From registry with Apache License 2.0 4 votes vote down vote up
@Override
public void authorizeSchemaMetadata(Authorizer.UserAndGroups userAndGroups,
                                    SchemaMetadata schemaMetadata,
                                    Authorizer.AccessType accessType)   {
    throw new NotImplementedException();
}