code: private void callOnFrameError(WebSocketException cause, WebSocketFrame frame)
      {
          mWebSocket.getListenerManager().callOnFrameError(cause, frame);
      }
docs: Call {@link WebSocketListener#onFrameError(WebSocket,
  WebSocketException, WebSocketFrame) onFrameError} method of the listeners.