DocWire SDK
DocWire SDK: Deterministic, auditable, and secure data processing in C++20. On-premise by default. No compromises on computational speed.
Loading...
Searching...
No Matches
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{});
Network failure error tag.
Definition error_tags.h:112

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

catch (const errors::base& e) {
std::cerr << "Network failure error" << std::endl;
}
bool contains_type(const std::exception &e)
Checks if the given nested exceptions chain contains a specific type of context.
Base class for all exceptions in the SDK.
Definition error.h:76
Examples
handling_errors_and_warnings.cpp.

Definition at line 111 of file error_tags.h.

Member Function Documentation

◆ string()

constexpr std::string_view docwire::errors::network_failure::string ( )
inlinestaticconstexpr

Definition at line 113 of file error_tags.h.


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