/** * {@inheritDoc} */ @Override public void writeTo(INPUT message, ByteBuffer buffer) { try { buffer.put(prepareBuffer(message)); } catch (TException e) { throw new ProtocolEncoderException(e); } } }
} catch (IOException ioEx) { LOG.error("error while marshalling", ioEx); throw new ProtocolEncoderException(ioEx.getMessage()); } catch (IOException ioEx) { LOG.error("error while marshalling", ioEx); throw new ProtocolEncoderException(ioEx.getMessage()); throw new ProtocolEncoderException(message.getClass() + " cannot be Serialized");