【问题标题】:Get text for error code returned by Poco?获取 Poco 返回的错误代码的文本?
【发布时间】:2019-02-08 22:22:44
【问题描述】:

我有一个带有 Poco 模块的应用程序用于互联网连接,以支持使用旧版 XP 和 Vista 操作系统的用户使用 TLS1.2 连接。存在返回 Poco 错误代码的连接问题,但我不知道这意味着什么。这是日志输出的一部分:

poco_connection::end_receiving_response_body entered
poco_connection::close entered
poco_session::destroy_connection entered
poco_connection::end_transaction entered (code 0x00280166, hresult 0x00000000, closing: FALSE)
--------- 043d7450 (Closing request)
poco_connection::transaction_notify entered (code 0x00280166, hresult 0x00000000): Status: 3
Poco Communication Failed: code 0x00280166, hresult 0x00000000
poco_connection::~poco_connection entered

一点研究表明有一个类 Poco::Error 包含一个方法

静态 std::string getMessage( 错误代码 );

返回错误的文本字符串。不幸的是,我没有 Poco 模块的源代码,因此无法添加该翻译调用。

由于 Poco 是一个开源项目,谁能指出我可以查找 Poco 错误映射的代码位置?具体错误代码0x00280166

【问题讨论】:

    标签: c++ poco


    【解决方案1】:

    似乎我在谷歌上搜索了一下很幸运

    https://github.com/pocoproject/poco/blob/develop/Foundation/src/Error.cpp

    但我不认为你很幸运,代码只是假设错误代码是 Windows 系统错误代码。当我用谷歌搜索 0x00280166 时,这个页面是唯一的成功。

    【讨论】:

      猜你喜欢
      • 2011-03-01
      • 1970-01-01
      • 2013-01-30
      • 1970-01-01
      • 2019-01-02
      • 2015-01-15
      • 2019-01-17
      • 1970-01-01
      • 2011-12-04
      相关资源
      最近更新 更多