{
switch (e.getCode())
{
case HornetQStompException.INVALID_EOL_V10:
if (version != null) throw e;
frameHandler = new StompFrameHandlerV12(this);
buffer.resetReaderIndex();
frame = decode(buffer);
break;
case HornetQStompException.INVALID_COMMAND:
frameHandler.onError(e);