Package org.graphity.processor.exception

Examples of org.graphity.processor.exception.NotFoundException


  super(uriInfo, endpoint);

        if (ontClass == null)
        {
            if (log.isDebugEnabled()) log.debug("Resource {} has not matched any template OntClass, returning 404 Not Found", getURI());
            throw new NotFoundException("Resource has not matched any template");
        }
       
  if (uriInfo == null) throw new IllegalArgumentException("UriInfo cannot be null");
        if (httpHeaders == null) throw new IllegalArgumentException("HttpHeaders cannot be null");
  if (resourceContext == null) throw new IllegalArgumentException("ResourceContext cannot be null");
View Full Code Here


  Model description = describe();
  if (description.isEmpty())
  {
      if (log.isDebugEnabled()) log.debug("Description Model is empty; returning 404 Not Found");
      throw new NotFoundException("Description Model is empty");
  }

        if (log.isDebugEnabled()) log.debug("Returning @GET Response with {} statements in Model", description.size());
  return getResponse(description);
    }
View Full Code Here

TOP

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

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.