void TCPConnection::ReportError(ErrorManager::eSeverity sev, int code, const String &context, const String &message, const boost::system::system_error &error) { String formattedMessage; formattedMessage.Format(_T("%s Remote IP: %s, Error code: %d, Message: %s"), message.c_str(), SafeGetIPAddress().c_str(), error.code().value(), String(error.what()).c_str()); ErrorManager::Instance()->ReportError(sev, code, context, formattedMessage); }
SystemErrorException(const boost::system::system_error& boostError): Exception(boostError.what()) { }