void ServerConnectionAdapter::ioException(IOException& e) { fprintf(stdout, "[NT] IOException message: %s\n", e.what()); fflush(stdout); if(e.isEOF()) gotoState(&ServerConnectionState::CLIENT_DISCONNECTED); else gotoState(new ServerConnectionState_Error(e)); adapterListener.close(*this, false); m_IsAdapterListenerClosed=true; if (readThread) { readThread->stop(); } }
void can_iface_ex_translator(const IOException& e) { PyErr_SetString(PyExc_RuntimeError, e.what().c_str()); }