DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
docwire::errors::network_failure Struct Reference

Network failure error tag. More...

#include <error_tags.h>

Static Public Member Functions

static constexpr std::string_view string ()
 

Detailed Description

Network failure error tag.

This tag is used to add the information that a network-related error occurred, such as a connection failure or timeout, while attempting to communicate with a remote server or resource. The procedure can be restarted, remote server state should be verified and if the error reason is not clear, it should be reported as an SDK issue.

throw make_error(errors::network_failure{});

Existence of this tag can be checked using errors::contains_type<errors::network_failure> function.

catch (const errors::base& e) {
if (errors::contains_type<errors::network_failure>(e))
std::cerr << "Network failure error" << std::endl;
}

Definition at line 111 of file error_tags.h.


The documentation for this struct was generated from the following file: