Examples of BioError


Examples of org.biojava.bio.BioError

          return onto.createTriple(st, tt, rt, null, null);
        } else {
          return onto.createTerm(termName, "");
        }
      } catch (AlreadyExistsException aee) {
        throw new BioError("Assertion Failure: Could not create term", aee);
      } catch (ChangeVetoException cve) {
        throw new BioError("Assertion Failure: Could not create term", cve);
      }
    }
  }
View Full Code Here

Examples of org.biojava.bio.BioError

      return (Triple) onto.getTriples(sub, obj, rel).iterator().next();
    } else {
      try {
        return onto.createTriple(sub, obj, rel, null, null);
      } catch (AlreadyExistsException aee) {
        throw new BioError("Assertion Failure: Could not create triple",aee);
      } catch (ChangeVetoException cve) {
        throw new BioError("Assertion Failure: Could not create triple", cve);
      }
    }
  }
View Full Code Here

Examples of org.biojava.bio.BioError

     } catch (AlreadyExistsException ex) {
              throw new ParseException(ex, "Duplication in ontology");
          } catch (OntologyException ex) {
              throw new ParseException(ex);
          } catch (ChangeVetoException ex) {
              throw new BioError("Error accessing newly created ontology",ex);
          }
         
  }
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.