}
@Override
public void channelRead(ChannelHandlerContext chc, Object message) throws Exception
{
RiakMessage riakMessage = (RiakMessage) message;
if (riakMessage.getCode() == RiakMessageCodes.MSG_ErrorResp)
{
RiakPB.RpbErrorResp error = RiakPB.RpbErrorResp.parseFrom(riakMessage.getData());
listener.onRiakErrorResponse(chc.channel(),
new RiakResponseException(error.getErrcode(),
error.getErrmsg().toStringUtf8()));
}