Examples of ObjectNotFoundException


Examples of org.openmrs.module.webservices.rest.web.response.ObjectNotFoundException

    String drugUuid = post.get("drug").toString();
    Drug drug = Context.getConceptService().getDrugByUuid(drugUuid);
   
    if (drug == null) {
      // drug doesn't exist, so we won't create the drug info
      throw new ObjectNotFoundException();
    }
   
    // create drug info POJO and add required relationship with a Drug
    DrugInfo drugInfo = new DrugInfo();
    drugInfo.setDrug(drug);
View Full Code Here

Examples of org.pentaho.commons.util.repository.exception.ObjectNotFoundException

          .append( folderName ).append( "']" ); //$NON-NLS-1$
    }
    String xPath = sb.toString();
    Element element = (Element) doc.selectSingleNode( xPath );
    if ( element == null ) {
      throw new ObjectNotFoundException();
    }
    return element;

  }
View Full Code Here

Examples of org.persvr.data.ObjectNotFoundException

                }
              }
            }
            if (attributes == -2) {
              // this indicates it was deleted
              throw new ObjectNotFoundException(id.source, objectId.toString());
            }
          }
          if(inRecoveryProcess){
            updateTableLastChange(tableId, objectReference, objectId instanceof Number ? ((Number)objectId).longValue() : 0);
          }
View Full Code Here

Examples of org.simoes.lpd.exception.ObjectNotFoundException

          break;
        }
      }
      // if the queued object was not found, then throw an ObjectNotFoundException
      if (found == false) {
        throw new ObjectNotFoundException(
          "the object associated with id[" + id + "] was not found.");
      }
    }
    // return
    return rval;
View Full Code Here

Examples of org.talend.esb.auxiliary.storage.common.exception.ObjectNotFoundException

        File file = new File(filePath);

        if (!file.exists()) {
            String errorMessage = "Attempt to remove non-existing object with key: " + key;
            LOG.log(Level.WARNING, errorMessage);
            throw new ObjectNotFoundException(errorMessage);
        }

        file.delete();
    }
View Full Code Here

Examples of org.uqbar.jimplify.errors.ObjectNotFoundException

  public T find(Predicate<T> condition) {
    return this.realCollection
        .stream()
        .filter(condition)
        .findFirst()
        .orElseThrow(() -> new ObjectNotFoundException("Not element found to satisfy the condition"));
  }
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.