Package org.servalproject.servaldna

Examples of org.servalproject.servaldna.ServalDFailureException


    case SID_LOCKED:
      throw new MeshMSUnknownIdentityException(url);
    case PROTOCOL_FAULT:
      throw new MeshMSProtocolFaultException(url);
    case ERROR:
      throw new ServalDFailureException("received meshms_status_code=ERROR(-1) from " + url);
    }
  }
View Full Code Here


          throw new ServalDInterfaceException("unexpected HTTP Content-Type: " + conn.getContentType());
        RhizomeManifest manifest = RhizomeManifest.fromTextFormat(status.input_stream);
        BundleExtra extra = bundleExtraFromHeaders(conn);
        return new RhizomeManifestBundle(manifest, extra.rowId, extra.insertTime, extra.author, extra.secret);
      case ERROR:
        throw new ServalDFailureException("received rhizome_bundle_status_code=ERROR(-1) from " + conn.getURL());
      }
    }
    catch (RhizomeManifestParseException e) {
      throw new ServalDInterfaceException("malformed manifest from daemon", e);
    }
View Full Code Here

      dumpHeaders(conn, System.err);
      decodeHeaderBundleStatus(status, conn);
      dumpStatus(status, System.err);
      switch (status.bundle_status_code) {
      case ERROR:
        throw new ServalDFailureException("received rhizome_bundle_status_code=ERROR(-1) from " + conn.getURL());
      case NEW: // No manifest
        return null;
      case SAME:
        decodeHeaderPayloadStatus(status, conn);
        switch (status.payload_status_code) {
        case ERROR:
          throw new ServalDFailureException("received rhizome_payload_status_code=ERROR(-1) from " + conn.getURL());
        case NEW:
          // The manifest is known but the payload is unavailable, so return a bundle
          // object with a null input stream.
          // FALL THROUGH
        case EMPTY:
View Full Code Here

      dumpHeaders(conn, System.err);
      decodeHeaderBundleStatus(status, conn);
      dumpStatus(status, System.err);
      switch (status.bundle_status_code) {
      case ERROR:
        throw new ServalDFailureException("received rhizome_bundle_status_code=ERROR(-1) from " + conn.getURL());
      case NEW: // No manifest
        return null;
      case SAME:
        decodeHeaderPayloadStatus(status, conn);
        switch (status.payload_status_code) {
        case ERROR:
          throw new ServalDFailureException("received rhizome_payload_status_code=ERROR(-1) from " + conn.getURL());
        case CRYPTO_FAIL:
          throw new RhizomeDecryptionException(conn.getURL());
        case NEW:
          // The manifest is known but the payload is unavailable, so return a bundle
          // object with a null input stream.
View Full Code Here

      dumpHeaders(conn, System.err);
      decodeHeaderPayloadStatus(status, conn);
      switch (status.payload_status_code) {
      case ERROR:
        dumpStatus(status, System.err);
        throw new ServalDFailureException("received Rhizome payload_status=ERROR " + quoteString(status.payload_status_message) + " from " + conn.getURL());
      case EMPTY:
      case NEW:
      case STORED:
        decodeHeaderBundleStatus(status, conn);
        dumpStatus(status, System.err);
        switch (status.bundle_status_code) {
        case ERROR:
          throw new ServalDFailureException("received Rhizome bundle_status=ERROR " + quoteString(status.bundle_status_message) + " from " + conn.getURL());
        case NEW:
        case SAME:
        case DUPLICATE:
        case OLD:
        case NO_ROOM: {
View Full Code Here

TOP

Related Classes of org.servalproject.servaldna.ServalDFailureException

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.