Examples of NotFoundException


Examples of de.zib.scalaris.NotFoundException

                    + ") failed with unknown: " + e.getMessage());
            throw new UnknownException(e);
        } catch (final NotFoundException e) {
            System.out.println("      read(" + otpKey.stringValue()
                    + ") failed with not found: " + e.getMessage());
            throw new NotFoundException(e);
        } catch (final ClassCastException e) {
            System.out.println("      read(" + otpKey.stringValue()
                    + ") failed with unknown return type: " + e.getMessage());
            throw new UnknownException(e);
        }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.exceptions.NotFoundException

  @Override
  public Defect[] getEntity(Session s, String id) throws NotFoundException {
    final int intId = Integer.parseInt(id);
    if(intId < 1) {
      throw new NotFoundException();
    }
    Defect[] defects = null;
    try {
      defects = db.retrieve(Defect.class, "id", intId, s.getProject()).toArray(new Defect[0]);
    } catch (WPISuiteException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    if(defects.length < 1 || defects[0] == null) {
      throw new NotFoundException();
    }
    return defects;
  }
View Full Code Here

Examples of foo.domaintest.action.HttpErrorException.NotFoundException

/** An {@link Action} for unregistered paths. */
@NoMetrics
public class NotFoundAction implements GetAction, PostAction {
  @Override
  public void run() {
    throw new NotFoundException("Not found");
  }
View Full Code Here

Examples of jade.core.NotFoundException

   
    private byte[] getResourceFromClasspath(String name) throws IOException, NotFoundException {
      // Get resource URL
      URL resourceUrl = getClass().getClassLoader().getResource(name);
      if (resourceUrl == null) {
        throw new NotFoundException("Resource " + name + " not found in class-path");
      }

      // Get input stream and read the bytes
      URLConnection uc = (URLConnection)resourceUrl.openConnection();
      InputStream is = uc.getInputStream();
View Full Code Here

Examples of javassist.NotFoundException

    public ConnInstanceTO delete(@PathVariable("connectorId") Long connectorId)
            throws NotFoundException {

        ConnInstance connInstance = connInstanceDAO.find(connectorId);
        if (connInstance == null) {
            throw new NotFoundException("Connector '" + connectorId + "'");
        }

        if (!connInstance.getResources().isEmpty()) {
            SyncopeClientCompositeErrorException scce = new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);
View Full Code Here

Examples of javax.ws.rs.NotFoundException

        for (LoggerTO l : logger) {
            if (l.getName().equals(name)) {
                return l;
            }
        }
        throw new NotFoundException();
    }
View Full Code Here

Examples of javax.ws.rs.NotFoundException

    public String single(@PathParam("inputId") String inputId) {
        final MessageInput input = inputRegistry.getRunningInput(inputId);

        if (input == null) {
            LOG.info("Input [{}] not found.", inputId);
            throw new NotFoundException();
        }

        return json(input.asMap());

    }
View Full Code Here

Examples of javax.ws.rs.NotFoundException

    public Response terminate(@PathParam("inputId") String inputId) {
        MessageInput input = inputRegistry.getRunningInput(inputId);

        if (input == null) {
            LOG.info("Cannot terminate input. Input not found.");
            throw new NotFoundException();
        }

        LOG.info("Attempting to terminate input [" + input.getName() + "]. Reason: REST request.");
        inputRegistry.terminate(input);
        LOG.info("Terminated input [" + input.getName() + "]. Reason: REST request.");
View Full Code Here

Examples of javax.ws.rs.NotFoundException

        }

        if (input == null) {
            final String message = "Cannot launch input <" + inputId + ">. Input not found.";
            LOG.info(message);
            throw new NotFoundException(message);
        }

        LOG.info("Launching existing input [" + input.getName() + "]. Reason: REST request.");
        input.initialize();
        if (inputState != null) {
View Full Code Here

Examples of modTransf.model.NotFoundException

      {
        return (RefObject)attribute.refGetValue("type");
      }
    }

    throw new NotFoundException("No property '" + propertyName + "' in '" + descriptor.getClass().getName() + "'.");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.