Package com.facebook.thrift.transport

Examples of com.facebook.thrift.transport.TTransportException


   */
  protected void transition(SelectionKey key) {
    // Ensure key is valid
    if (!key.isValid()) {
      key.cancel();
      Exception e = new TTransportException("Selection key not valid!");
      onError(e);
      return;
    }

    // Transition function
View Full Code Here


  public int read(byte[] buf, int off, int len) throws TTransportException {
    try {
      buffer_.get(buf, off, len);
    } catch (BufferUnderflowException e) {
      LOG.warn("read buffer underflow", e);
      throw new TTransportException("Buffer underflow");
    }
    return len;
  }
View Full Code Here

        buffer_.flip();
        b.put(buffer_);
        buffer_ = b;
        continue;
      } catch (Exception e) {
        throw new TTransportException(e.toString());
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.facebook.thrift.transport.TTransportException

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.