Package org.graphity.processor.exception

Examples of org.graphity.processor.exception.ConstraintViolationException


  if (!cvs.isEmpty())
        {
            if (log.isDebugEnabled()) log.debug("SPIN constraint violations: {}", cvs);
            if (mode != null && mode.equals(URI.create(GC.EditMode.getURI()))) // check by HTTP request method?
            {
                throw new ConstraintViolationException(cvs, model);
            }
            else // gc:CreateMode
            {
                QueriedResource match = (QueriedResource)getUriInfo().getMatchedResources().get(0);
                throw new ConstraintViolationException(cvs, match.describe().add(model));
            }
        }
       
        return model;
    }
View Full Code Here

TOP

Related Classes of org.graphity.processor.exception.ConstraintViolationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.