void CurlClient::onError(const HTTPException& error) noexcept { std::cout << "on error!" << std::endl; LOG(ERROR) << "An error occurred: " << error.what(); }
void CurlClient::onError(const HTTPException& error) noexcept { LOG_IF(ERROR, loggingEnabled_) << "An error occurred: " << error.what(); }
void HTTPCodecPrinter::onError(StreamID stream, const HTTPException& error, bool newStream) { std::cout << "[Exception] " << error.what() << std::endl; callback_->onError(stream, error, newStream); }