Examples of InvalidIDException


Examples of org.openbel.framework.ws.utils.InvalidIdException

            try {
                KamStoreObjectRef ref = Converter.decodeEdge(first);
                final KamInfo info = getKamInfo(ref, "Error processing KAM edge");
                kam = kamCacheService.getKam(info.getName());
                if (kam == null) {
                    throw new KamStoreServiceException(new InvalidIdException(ref.getEncodedString()));
                }
            } catch (InvalidIdException e) {
                throw new KamStoreServiceException("Error processing KAM edge", e);
            }
View Full Code Here

Examples of org.openbel.framework.ws.utils.InvalidIdException

        } catch (SQLException e) {
            throw new KamStoreServiceException(errorMsg, e);
        }
        if (kamInfo == null) {
            throw new KamStoreServiceException(
                    new InvalidIdException(kamElementRef.getEncodedString()));
        }
        return kamInfo;
    }
View Full Code Here

Examples of org.openbel.framework.ws.utils.InvalidIdException

            objKam = new KamDialect(objKam, dialect);
        }

        if (objKam == null) {
            throw new RequestException("Error processing KAM node",
                    new InvalidIdException(kamElementRef.getEncodedString()));
        }

        final org.openbel.framework.api.NodeFilter nodes =
                convertNodeFilterInRequest(
                        request.getNodeFilter(), objKam);
View Full Code Here

Examples of org.openbel.framework.ws.utils.InvalidIdException

                "Error processing KAM node");
        org.openbel.framework.api.Kam objKam;
        objKam = kamCacheService.getKam(kamInfo.getName());
        if (objKam == null) {
            throw new RequestException("Error processing KAM node",
                    new InvalidIdException(kamElementRef.getEncodedString()));
        }
        // Get the Dialect (may be null)
        final Dialect dialect = getDialect(request.getDialect());
        if (dialect != null) {
            objKam = new KamDialect(objKam, dialect);
View Full Code Here

Examples of org.openbel.framework.ws.utils.InvalidIdException

                    .getKamInfoById(kamElementRef.getKamInfoId());
        } catch (SQLException e) {
            throw new RequestException(errorMsg, e);
        }
        if (kamInfo == null) {
            throw new RequestException(errorMsg, new InvalidIdException(
                    kamElementRef.getEncodedString()));
        }
        return kamInfo;
    }
View Full Code Here

Examples of org.waveprotocol.wave.model.id.InvalidIdException

    if (parts.length == 1) {
      return new AttachmentId("", parts[0]);
    }

    // Not a valid id, throw an exception.
    throw new InvalidIdException(attachmentIdString,
        "Unable to deserialise the attachment id: " + attachmentIdString +
        ". The attachment id needs to look like <domain>/<id> or <id>");
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.id.InvalidIdException

    if (parts.length == 1) {
      return new AttachmentId("", parts[0]);
    }

    // Not a valid id, throw an exception.
    throw new InvalidIdException(attachmentIdString,
        "Unable to deserialise the attachment id: " + attachmentIdString +
        ". The attachment id needs to look like <domain>/<id> or <id>");
  }
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.